[PATCH v3 0/2] notmuch hooks

Jameson Graef Rollins jrollins at finestructure.net
Wed Dec 7 10:10:57 PST 2011


On Wed, 07 Dec 2011 20:05:22 +0200, Jani Nikula <jani at nikula.org> wrote:
> It would, but as I wrote in id:"87mxb8kt5r.fsf at nikula.org", I think that
> should come as another patch afterwards. I know I can't decide yet what
> should be passed and how. Processed message counts (added, deleted,
> renamed) could be passed on the command line, but how useful is that
> really? The same can be easily achieved through initial tagging.

I would say that probably the best way to pass information to the hook
scripts is via the environment.  For instance, notmuch could pass the
variable NOTMUCH_NEW_MESSAGES containing the number of new messages to
the post-new script.

jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111207/f62dcb96/attachment.pgp>


More information about the notmuch mailing list