1 <h1>NOTMUCH-HOOKS(5)</h1>
6 notmuch-hooks - hooks for notmuch
12 $DATABASEDIR/.notmuch/hooks/*
18 Hooks are scripts (or arbitrary executables or symlinks to such) that
19 notmuch invokes before and after certain actions. These scripts reside
20 in the .notmuch/hooks directory within the database directory and must
21 have executable permissions.
25 The currently available hooks are described below.
30 This hook is invoked by the <b>new</b> command before scanning or
31 importing new messages into the database. If this hook exits
32 with a non-zero status, notmuch will abort further processing
33 of the <b>new</b> command.
37 Typically this hook is used for fetching or delivering new mail
38 to be imported into the database.
43 This hook is invoked by the <b>new</b> command after new messages have
44 been imported into the database and initial tags have been
45 applied. The hook will not be run if there have been any errors
46 during the scan or import.
50 Typically this hook is used to perform additional query-based
51 tagging on the imported messages.
57 <b>notmuch</b>(1), <b>notmuch-config</b>(1), <b>notmuch-count</b>(1), <b>notmuch-dump</b>(1), <b>not-</b>
58 <b>much-new</b>(1), <b>notmuch-reply</b>(1), <b>notmuch-restore</b>(1), <b>notmuch-search</b>(1),
59 <b>notmuch-search-terms</b>(7), <b>notmuch-show</b>(1), <b>notmuch-tag</b>(1)
62 <h1>Notmuch 0.13.2</h1>