summaryrefslogtreecommitdiff
path: root/mutt/notmuch-hook.sh
blob: 436f8e18c6d60ed4e613f516403b741ef02aad53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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*'