Re: [PATCH v3 0/2] notmuch hooks

Subject: Re: [PATCH v3 0/2] notmuch hooks

Date: Wed, 07 Dec 2011 10:10:57 -0800

To: Jani Nikula, Tom Prince, notmuch@notmuchmail.org

Cc:

From: Jameson Graef Rollins


On Wed, 07 Dec 2011 20:05:22 +0200, Jani Nikula <jani@nikula.org> wrote:
> It would, but as I wrote in id:"87mxb8kt5r.fsf@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.
part-000.sig (application/pgp-signature)

Thread: