]> git.cworth.org Git - obsolete/notmuch-wiki/blob - manpages/notmuch-hooks-5.mdwn
Update news & manpages to notmuch version 0.16
[obsolete/notmuch-wiki] / manpages / notmuch-hooks-5.mdwn
1 <h1>NOTMUCH-HOOKS(5)</h1>
2
3 <h2>NAME</h2>
4 <pre>
5        notmuch-hooks - hooks for notmuch
6 </pre>
7
8 <h2>SYNOPSIS</h2>
9 <pre>
10         $DATABASEDIR/.notmuch/hooks/*
11 </pre>
12
13 <h2>DESCRIPTION</h2>
14 <pre>
15        Hooks  are  scripts (or arbitrary executables or symlinks to such) that
16        notmuch invokes before and after certain actions. These scripts  reside
17        in  the .notmuch/hooks directory within the database directory and must
18        have executable permissions.
19
20        The currently available hooks are described below.
21
22            <b>pre-new</b>
23                This hook is invoked by the  <b>new</b>  command  before  scanning  or
24                importing  new  messages  into the database. If this hook exits
25                with a non-zero status, notmuch will abort  further  processing
26                of the <b>new</b> command.
27
28                Typically this hook is used for fetching or delivering new mail
29                to be imported into the database.
30
31            <b>post-new</b>
32                This hook is invoked by the <b>new</b> command after new messages have
33                been  imported  into  the  database  and initial tags have been
34                applied. The hook will not be run if there have been any errors
35                during the scan or import.
36
37                Typically  this  hook is used to perform additional query-based
38                tagging on the imported messages.
39 </pre>
40
41 <h2>SEE ALSO</h2>
42 <pre>
43        <a href='../notmuch-1/'>notmuch</a>(1), <a href='../notmuch-config-1/'>notmuch-config</a>(1), <a href='../notmuch-count-1/'>notmuch-count</a>(1), <a href='../notmuch-dump-1/'>notmuch-dump</a>(1),  <a href='../notmuch-insert-1/'>not-</a>
44        <a href='../notmuch-insert-1/'>much-insert</a>(1),  <a href='../notmuch-new-1/'>notmuch-new</a>(1),  <a href='../notmuch-reply-1/'>notmuch-reply</a>(1), <a href='../notmuch-restore-1/'>notmuch-restore</a>(1),
45        <a href='../notmuch-search-1/'>notmuch-search</a>(1), <a href='../notmuch-search-terms-7/'>notmuch-search-terms</a>(7),  <a href='../notmuch-show-1/'>notmuch-show</a>(1),  <a href='../notmuch-tag-1/'>notmuch-</a>
46        <a href='../notmuch-tag-1/'>tag</a>(1)
47 </pre>
48
49 <h2>Notmuch 0.16</h2>