diff options
Diffstat (limited to 'notmuch/default/hooks/pre-new')
-rwxr-xr-x | notmuch/default/hooks/pre-new | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/notmuch/default/hooks/pre-new b/notmuch/default/hooks/pre-new new file mode 100755 index 0000000..443e3f2 --- /dev/null +++ b/notmuch/default/hooks/pre-new | |||
@@ -0,0 +1,15 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | # Notmuch pre-new hook | ||
3 | |||
4 | # This hook is invoked by the new command before scanning or im‐ | ||
5 | # porting new messages into the database. If this hook exits with | ||
6 | # a non-zero status, notmuch will abort further processing of the | ||
7 | # new command. | ||
8 | |||
9 | # Typically this hook is used for fetching or delivering new mail | ||
10 | # to be imported into the database. | ||
11 | |||
12 | # TODO: In notmuch v0.35, the location of this hook becomes configurable. | ||
13 | # When I have that installed, I want to move this to ~/.config/notmuch. | ||
14 | |||
15 | /home/case/usr/scripts/syncmail | ||