summaryrefslogtreecommitdiff
path: root/dotfiles/Mail/.notmuch/hooks/post-new
blob: a944bd918400e7719c6ea1b92d2335ee9efb5843 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh

# Mail that I sent doesn't need to be put in the inbox
notmuch tag -new -- from:davet@gnu.org OR from:davet@fsf.org OR \
        from:dthompson2@worcester.edu

# Commit notifications
notmuch tag -new +commits -- subject:Office-commits \
        OR from:account for gitolite OR to:www-commits@gnu.org

# Fencepost updates
notmuch tag -new +fencepost -- from:diffmon@gnu.org

# GNU webmasters
notmuch tag -new +webmasters -- from:webmasters@gnu.org \
        OR from:webmasters-comment@gnu.org

# FSF sysadmins
notmuch tag -new +fsfsys -- from:sysadmin@gnu.org \
        OR from:sysadmin-comment@gnu.org

# Linode
notmuch tag -new +linode -- from:billing@linode.com

# Mark spam
notmuch tag -new +spam -- folder:FSF/INBOX.Spam OR folder:WSU/[Gmail].Spam
notmuch tag -new +spam -- from:john.pozzi@comcast.net # Do not feed

# Loomio
notmuch tag +loomio -new -- from:notifications@loomio.org

# VHL notifications
notmuch tag -new +nagios -- from:nagios@sybilmarkley.vhl.dom
notmuch tag -new +airbrake -- from:donotreply@alerts.airbrake.io

# Remaining new mail goes to the inbox
notmuch tag -new +inbox +unread -- tag:new

# GNU mailing lists
notmuch tag -inbox +guix -- to:guix-devel@gnu.org OR to:bug-guix@gnu.org
notmuch tag -inbox +guile -- to:guile-devel@gnu.org OR to:guile-user@gnu.org
notmuch tag -inbox +gnu -- to:gnu-prog-discuss@gnu.org
notmuch tag -inbox +mediagoblin -- to:devel@mediagoblin.org
notmuch tag -inbox +gnu-webmasters -- to:www-discuss@gnu.org

# Remove inbox tag from all mail in archive
notmuch tag -inbox -- folder:WSU/Archive AND tag:inbox
notmuch tag -inbox -- folder:FSF/INBOX.Archive AND tag:inbox