aboutsummaryrefslogtreecommitdiff
path: root/config/notmuch/hooks/post-new
diff options
context:
space:
mode:
Diffstat (limited to 'config/notmuch/hooks/post-new')
-rwxr-xr-xconfig/notmuch/hooks/post-new3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/notmuch/hooks/post-new b/config/notmuch/hooks/post-new
new file mode 100755
index 0000000..05250e4
--- /dev/null
+++ b/config/notmuch/hooks/post-new
@@ -0,0 +1,3 @@
+#!/bin/sh
+test $(notmuch search tag:new | wc -l) -gt 0 && notify-send notmuch "new mail"
+notmuch tag -new tag:new