[PATCH v2 2/2] cli: add support for pre and post notmuch new hooks

2011-12-04 Thread Jani Nikula
On Sun, 04 Dec 2011 11:46:38 -0500, Tom Prince wrote: > On Sun, 4 Dec 2011 01:16:49 +0200, Jani Nikula 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

[PATCH v2 2/2] cli: add support for pre and post notmuch new hooks

2011-12-04 Thread Jani Nikula
On Sat, 3 Dec 2011 23:00:47 -0500, Austin Clements wrote: > Quoth Jani Nikula on Dec 04 at 1:16 am: > > 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

[PATCH v2 2/2] cli: add support for pre and post notmuch new hooks

2011-12-04 Thread Tom Prince
On Sun, 04 Dec 2011 21:36:21 +0200, Jani Nikula wrote: > > > +if (run_hooks && !ret && !interrupted) > > > + ret = notmuch_run_hook (db_path, "post-new"); > > > > Does it matter at this point if the hook fails? I'm not sure. > > I wasn't sure either, but I ended up thinking that the hooks

[PATCH v2 2/2] cli: add support for pre and post notmuch new hooks

2011-12-04 Thread Jani Nikula
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,

Re: [PATCH v2 2/2] cli: add support for pre and post notmuch new hooks

2011-12-04 Thread Tom Prince
On Sun, 4 Dec 2011 01:16:49 +0200, Jani Nikula j...@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

Re: [PATCH v2 2/2] cli: add support for pre and post notmuch new hooks

2011-12-04 Thread Jani Nikula
On Sat, 3 Dec 2011 23:00:47 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Jani Nikula on Dec 04 at 1:16 am: 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

Re: [PATCH v2 2/2] cli: add support for pre and post notmuch new hooks

2011-12-04 Thread Tom Prince
On Sun, 04 Dec 2011 21:36:21 +0200, Jani Nikula j...@nikula.org wrote: +if (run_hooks !ret !interrupted) + ret = notmuch_run_hook (db_path, post-new); Does it matter at this point if the hook fails? I'm not sure. I wasn't sure either, but I ended up thinking that the hooks

Re: [PATCH v2 2/2] cli: add support for pre and post notmuch new hooks

2011-12-04 Thread Jani Nikula
On Sun, 04 Dec 2011 11:46:38 -0500, Tom Prince tom.pri...@ualberta.net wrote: On Sun, 4 Dec 2011 01:16:49 +0200, Jani Nikula j...@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

[PATCH v2 2/2] cli: add support for pre and post notmuch new hooks

2011-12-03 Thread Austin Clements
Quoth Jani Nikula on Dec 04 at 1:16 am: > 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

Re: [PATCH v2 2/2] cli: add support for pre and post notmuch new hooks

2011-12-03 Thread Austin Clements
Quoth Jani Nikula on Dec 04 at 1:16 am: 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