1 .TH NOTMUCH-HOOKS 5 2013-08-03 "Notmuch 0.16"
4 notmuch-hooks \- hooks for notmuch
7 $DATABASEDIR/.notmuch/hooks/*
10 Hooks are scripts (or arbitrary executables or symlinks to such) that notmuch
11 invokes before and after certain actions. These scripts reside in
12 the .notmuch/hooks directory within the database directory and must have
13 executable permissions.
15 The currently available hooks are described below.
19 This hook is invoked by the
21 command before scanning or importing new messages into the database. If this
22 hook exits with a non-zero status, notmuch will abort further processing of the
26 Typically this hook is used for fetching or delivering new mail to be imported
32 This hook is invoked by the
34 command after new messages have been imported into the database and initial tags
35 have been applied. The hook will not be run if there have been any errors during
38 Typically this hook is used to perform additional query\-based tagging on the
44 \fBnotmuch\fR(1), \fBnotmuch-config\fR(1), \fBnotmuch-count\fR(1),
45 \fBnotmuch-dump\fR(1), \fBnotmuch-insert\fR(1), \fBnotmuch-new\fR(1),
46 \fBnotmuch-reply\fR(1), \fBnotmuch-restore\fR(1), \fBnotmuch-search\fR(1),
47 \fBnotmuch-search-terms\fR(7), \fBnotmuch-show\fR(1),