summaryrefslogtreecommitdiff
path: root/dotfiles/Mail/.notmuch/hooks/post-new
blob: 5cc4ef75df586c114234f5515cad13dbbc57ff9b (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
49
50
51
52
53
54
55
#!/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 OR \
        from:dthompson@vistahigherlearning.com

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

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

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

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

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

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

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

# VHL notifications
notmuch tag -new -unread +nagios -- from:nagios@sybilmarkley.vhl.dom
notmuch tag -new -unread +airbrake -- from:donotreply@alerts.airbrake.io
notmuch tag -new -unread +semaphore -- \
        from:semaphore+notifications@renderedtext.com \
        OR from:semaphore@renderedtext.com
notmuch tag -new -unread +newrelic -- from:noreply@newrelic.com
notmuch tag -new -unread +rackspace -- from:support@rackspace.com

# 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