[PATCH v3 0/2] notmuch hooks

Jani Nikula jani at nikula.org
Tue Dec 6 05:22:36 PST 2011


Hi all, this is v3 of the notmuch hooks patches. I think this is nearing
completion apart from final review and, most notably, tests.

Changes in v3:

* Incorporate Austin's review comments (id:"20111204034210.GA16405 at mit.edu" and
  id:"20111204040047.GB16405 at mit.edu"), the biggest change being the switch from
  system() to fork()/execl().

* Rename notmuch-hook.c to hooks.c (reserving notmuch- prefixed files to notmuch
  commands).

* Add "notmuch help" documentation.

* Add NEWS.

I've been using this for some days now, and (subjective as it is) I have to say
I like offlineimap being run from notmuch new "pre-new" hook much better than
vice versa. Even more so for "post-new" tagging scripts.


BR,
Jani.


Jani Nikula (2):
  cli: introduce the concept of user defined hooks
  cli: add support for pre and post notmuch new hooks

 Makefile.local   |    1 +
 NEWS             |   10 ++++++
 hooks.c          |   93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 notmuch-client.h |    3 ++
 notmuch-new.c    |   12 +++++++
 notmuch.1        |   50 ++++++++++++++++++++++++++++-
 notmuch.c        |   39 ++++++++++++++++++++++-
 7 files changed, 206 insertions(+), 2 deletions(-)
 create mode 100644 hooks.c

-- 
1.7.5.4



More information about the notmuch mailing list