diff options
| author | Jani Nikula <jani@nikula.org> | 2016-03-11 14:29:06 +0200 |
|---|---|---|
| committer | Jani Nikula <jani@nikula.org> | 2016-03-11 14:29:06 +0200 |
| commit | 00ca7e9b4ea35bb70e07f67db192bd2fc4d4c856 (patch) | |
| tree | 73aad7d6c4f4a499bc01a8ae26e56ef106c8c6fd /getting-started.mdwn | |
| parent | b76249ee2a366948cb2da97c69e767a6f34d07c9 (diff) | |
getting-started: hooks
Diffstat (limited to 'getting-started.mdwn')
| -rw-r--r-- | getting-started.mdwn | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/getting-started.mdwn b/getting-started.mdwn index dbc13ff..eb83c4c 100644 --- a/getting-started.mdwn +++ b/getting-started.mdwn @@ -87,6 +87,14 @@ There are two ways to deliver and index messages: ## Automation Via Hooks +Notmuch supports running [[user defined hooks|manpages/notmuch-hooks-5]] before +or after certain commands. Hooks can be arbitrary executable programs or +scripts. For example, if you always run your mail delivery tool first and +`notmuch new` after that, you can run the tool from Notmuch `pre-new` hook, and +simply run `notmuch new` to do both. If you always do some tagging after +indexing of new messages, you may want to set up a `post-new` or `post-insert` +hook to do that automatically. + ## Backing up and Restoring the Database ## Removing Notmuch |
