X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=doc%2Fman5%2Fnotmuch-hooks.rst;h=f96a923b23f2a8f57ac9882ee72d4e6b9099513e;hp=493abf20f0039a62e17355e5dc1fe757579f40be;hb=8e3ee13abc8f7e62557aaf862bbf6aa3e33f6d33;hpb=d736260385a689b5c77d8121f48e29440e3adfa4 diff --git a/doc/man5/notmuch-hooks.rst b/doc/man5/notmuch-hooks.rst index 493abf20..f96a923b 100644 --- a/doc/man5/notmuch-hooks.rst +++ b/doc/man5/notmuch-hooks.rst @@ -5,7 +5,7 @@ notmuch-hooks SYNOPSIS ======== - $DATABASEDIR/.notmuch/hooks/* +$DATABASEDIR/.notmuch/hooks/* DESCRIPTION =========== @@ -35,6 +35,17 @@ The currently available hooks are described below. Typically this hook is used to perform additional query-based tagging on the imported messages. + **post-insert** + + 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 succesful delivery depends on the ``--keep`` option. + + Typically this hook is used to perform additional query-based + tagging on the delivered messages. + SEE ALSO ========