Hi all, this is v4 of the notmuch hooks patches. Changes: * Fix WIFEXITED (id:"8739cxzv30.fsf@nikula.org"). * Add tests. BR, Jani. Jani Nikula (3): cli: introduce the concept of user defined hooks cli: add support for pre and post notmuch new hooks test: add tests for hooks Makefile.local | 1 + NEWS | 10 +++++ hooks.c | 93 +++++++++++++++++++++++++++++++++++++++++++++++ notmuch-client.h | 3 ++ notmuch-new.c | 12 ++++++ notmuch.1 | 50 +++++++++++++++++++++++++- notmuch.c | 39 +++++++++++++++++++- test/hooks | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++++ test/notmuch-test | 1 + 9 files changed, 311 insertions(+), 2 deletions(-) create mode 100644 hooks.c create mode 100755 test/hooks -- 1.7.5.4