]> git.notmuchmail.org Git - notmuch/blobdiff - doc/man5/notmuch-hooks.rst
cli/insert: add post-insert hook
[notmuch] / doc / man5 / notmuch-hooks.rst
index 493abf20f0039a62e17355e5dc1fe757579f40be..f1c2528c5666b2dbd4e8ce1c5ae8f43b44f174de 100644 (file)
@@ -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
 ========