diff options
Diffstat (limited to 'mutt')
-rwxr-xr-x | mutt/notmuch-hook.sh | 18 |
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*' |