From 486a7d2e64d3872088b7d61b9cd679f667b4d56b Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 10 Jul 2018 11:13:37 -0700 Subject: Add notmuch and urlscan configs to mutt --- mutt/notmuch-hook.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 mutt/notmuch-hook.sh (limited to 'mutt') 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*' -- cgit v1.2.3