summaryrefslogtreecommitdiff
path: root/mutt/notmuch-hook.sh
blob: eec668049751b94480047d3efc6f9ebd67f0c41e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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 -unread -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*'

# tag job-related emails
notmuch tag +jobs -inbox -- \
    from:alist.co or \
    from:angel.co or \
    from:stackoverflow.com or \
    from:stackoverflow.email or \
    subject:job