]> git.notmuchmail.org Git - notmuch/commitdiff
cli: add support for pre and post notmuch new hooks
authorJani Nikula <jani@nikula.org>
Thu, 8 Dec 2011 22:48:30 +0000 (00:48 +0200)
committerDavid Bremner <bremner@debian.org>
Sun, 11 Dec 2011 17:58:15 +0000 (13:58 -0400)
Run notmuch new pre and post hooks, named "pre-new" and "post-new", if
present in the notmuch hooks directory. The hooks will be run before and
after incorporating new messages to the database.

Typical use cases for pre-new and post-new hooks are fetching or delivering
new mail to the maildir, and custom tagging of the mail incorporated to the
database.

Also add command line option --no-hooks to notmuch new to bypass the hooks.

Signed-off-by: Jani Nikula <jani@nikula.org>

No differences found