1NOTMUCH-HOOKS(5)                    notmuch                   NOTMUCH-HOOKS(5)
2
3
4

NAME

6       notmuch-hooks - hooks for notmuch
7

SYNOPSIS

9       $DATABASEDIR/.notmuch/hooks/*
10

DESCRIPTION

12       Hooks  are  scripts (or arbitrary executables or symlinks to such) that
13       notmuch invokes before and after certain actions. These scripts  reside
14       in  the .notmuch/hooks directory within the database directory and must
15       have executable permissions.
16
17       The currently available hooks are described below.
18
19       pre-new
20              This hook is invoked by  the  new  command  before  scanning  or
21              importing  new  messages  into  the database. If this hook exits
22              with a non-zero status, notmuch will abort further processing of
23              the new command.
24
25              Typically  this hook is used for fetching or delivering new mail
26              to be imported into the database.
27
28       post-new
29              This hook is invoked by the new command after new messages  have
30              been  imported  into  the  database  and  initial tags have been
31              applied. The hook will not be run if there have been any  errors
32              during the scan or import.
33
34              Typically  this  hook  is used to perform additional query-based
35              tagging on the imported messages.
36
37       post-insert
38              This hook is invoked by the insert command after the message has
39              been  delivered,  added  to  the database, and initial tags have
40              been applied. The hook will not be run if there  have  been  any
41              errors during the message delivery; what is regarded as success‐
42              ful delivery depends on the --keep option.
43
44              Typically this hook is used to  perform  additional  query-based
45              tagging on the delivered messages.
46

SEE ALSO

48       notmuch(1),  notmuch-config(1), notmuch-count(1), notmuch-dump(1), not‐
49       much-insert(1), notmuch-new(1),  notmuch-reply(1),  notmuch-restore(1),
50       notmuch-search(1),   notmuch-search-terms(7),   notmuch-show(1),   not‐
51       much-tag(1)
52

AUTHOR

54       Carl Worth and many others
55
57       2009-2020, Carl Worth and many others
58
59
60
61
620.29.3                           Jan 29, 2020                 NOTMUCH-HOOKS(5)
Impressum