summaryrefslogtreecommitdiff
path: root/.fmail/.notmuch/hooks/post-new
blob: 1f908d413e5f660531e07894567940ccc656fe52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# Fix copies of my own mail returned to folder:inbox by mailing lists.  This
# is a workaround for a bug in notmuch; see <id:87ee1c7s7s.fsf@tethera.net>.
notmuch tag +unread -- folder:sent
notmuch tag -unread -- folder:sent

# mark all drafts as drafts, and as read
notmuch tag -unread +draft -- folder:drafts

# mark all spam as spam, and as read, for Gnus
notmuch tag -unread +spam -- folder:spam

# mark all trash as trash, and as read, for Gnus
notmuch tag -unread +deleted -- folder:trash