[PATCH v2 2/2] cli: add support for pre and post notmuch new hooks
Tom Prince
tom.prince at ualberta.net
Sun Dec 4 08:46:38 PST 2011
On Sun, 4 Dec 2011 01:16:49 +0200, Jani Nikula <jani at nikula.org> wrote:
> 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.
A useful extension would be providing the list of added message-ids to the
post-new hook, one per line? Or maybe the script wants added, moved,
deleted ...
Tom
More information about the notmuch
mailing list