On Wed, 07 Dec 2011 20:05:22 +0200, Jani Nikula 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.