about summary refs log tree commit diff stats
path: root/notmuch/default/hooks/post-insert
blob: b983dfc6f7e37e09660967b73133b4f25c1dfe94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
# Notmuch post-insert hook

# This hook is invoked by the insert command after the message has
# been  delivered,  added  to  the database, and initial tags have
# been applied. The hook will not be run if there  have  been  any
# errors during the message delivery; what is regarded as success‐
# ful delivery depends on the --keep option.

# Typically this hook is used to  perform  additional  query-based
# tagging on the delivered messages.

# TODO: In notmuch v0.35, the location of this hook becomes configurable.
# When I have that installed, I want to move this to ~/.config/notmuch.