]> git.notmuchmail.org Git - notmuch/commit
cli: introduce the concept of user defined hooks
authorJani Nikula <jani@nikula.org>
Thu, 8 Dec 2011 22:48:29 +0000 (00:48 +0200)
committerDavid Bremner <bremner@debian.org>
Sun, 11 Dec 2011 17:57:31 +0000 (13:57 -0400)
commitd399b6b909fe6e2c6073464006061382c8bb31d5
tree3cfadc14d05d5ef57e3c32d3568c4b0eaf91a433
parentae13d612c14f654d4bc12c93481227e4d24fda82
cli: introduce the concept of user defined hooks

Add mechanism for running user defined hooks. Hooks are executables or
symlinks to executables stored under the new notmuch hooks directory,
<database-path>/.notmuch/hooks.

No hooks are introduced here, but adding support for a hook is now a simple
matter of calling the new notmuch_run_hook() function at an appropriate
location with the hook name.

Signed-off-by: Jani Nikula <jani@nikula.org>
Makefile.local
hooks.c [new file with mode: 0644]
notmuch-client.h