summaryrefslogtreecommitdiff
path: root/notmuch-hook.sh
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-11-07 12:15:57 -0800
committerBen Sima <ben@bsima.me>2018-11-07 12:15:57 -0800
commit98d41aa9374b033f194f940ba3983babc29e5ef8 (patch)
tree52a3c978dbb9f5b0a1a40e3213b41d78e1a1dfb6 /notmuch-hook.sh
parent1e90212416d21d0bad313e1903f97a950e10e3f5 (diff)
Configure email
Diffstat (limited to 'notmuch-hook.sh')
-rwxr-xr-xnotmuch-hook.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/notmuch-hook.sh b/notmuch-hook.sh
new file mode 100755
index 0000000..a55a2e1
--- /dev/null
+++ b/notmuch-hook.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env sh
+
+# tag all messages from "me" as sent
+notmuch tag +sent -inbox -unread -- from:ben@bsima.me
+
+# tag TODOs from myself, always mark as unread so I'm forced to process them
+notmuch tag +todo -inbox +unread -- subject:TODO and from:ben@bsima.me and to:ben@bsima.me
+
+# tag some newsletters, but don't show them in inbox
+notmuch tag +newsletters -inbox -- \
+ from:the-morning-paper@onelanday.co.uk or \
+ from:newsletter@fightaging.org or \
+ subject:'The Reading List Email*' or \
+ from:info@haskellweekly.news or \
+ from:kale@hackernewsletter.com
+
+# tag logwatch emails & remove from inbox
+notmuch tag +logwatch -new -inbox -- subject:'Logwatch*'
+
+# tag job-related emails
+notmuch tag +jobs -inbox -- \
+ from:alist.co or \
+ from:angel.co or \
+ from:stackoverflow.com or \
+ from:stackoverflow.email or \
+ from:cdmtechnology.com or \
+ subject:job
+
+# tag github emails
+notmuch tag +github -inbox -- from:github.com
+
+# haskell-cafe
+notmuch tag +haskell -- to:haskell-cafe@haskell.org