summaryrefslogtreecommitdiff
path: root/mutt
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-07-10 11:13:37 -0700
committerBen Sima <ben@bsima.me>2018-07-10 11:13:37 -0700
commit486a7d2e64d3872088b7d61b9cd679f667b4d56b (patch)
treefc76f96bb696fdc6dca2205f62a865e0b92ce5c2 /mutt
parent0bb256c4c6f295ab5df2f3bd18ec5fe054ad62c5 (diff)
Add notmuch and urlscan configs to mutt
Diffstat (limited to 'mutt')
-rwxr-xr-xmutt/notmuch-hook.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/mutt/notmuch-hook.sh b/mutt/notmuch-hook.sh
new file mode 100755
index 0000000..436f8e1
--- /dev/null
+++ b/mutt/notmuch-hook.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env sh
+
+notmuch new
+
+# retag all "new" messages "inbox" and "unread"
+notmuch tag +inbox +unread -new -- tag:new
+
+# tag all messages from "me" as sent and rmeove tags inbox and unread
+notmuch tag -new -inbox +sent -- from:ben@bsima.me or from:bsima@me.com
+
+# tag some newsletters, but don't show them in inbox
+notmuch tag +newsletters -new -inbox -- \
+ from:the-morning-paper@onelanday.co.uk or \
+ from:newsletter@fightaging.org or \
+ subject:'The Reading List Email*'
+
+# tag logwatch emails & remove from inbox
+notmuch tag +logwatch -new -inbox -- subject:'Logwatch*'