summaryrefslogtreecommitdiff
path: root/dotfiles/Mail/.notmuch/hooks/post-new
blob: 840a97a1658fe70cd29e4d04100ebd4569b647b1 (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
56
57
58
59
60
61
#!/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 OR \
        from:nagios@nagios_rs.localdomain OR nagios@nagios-aws.localdomain
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
notmuch tag -new -unread +vividcortex -- from:notifications@vividcortex.com
notmuch tag -new -unread +aws -- from:no-reply@sns.amazonaws.com
notmuch tag -new -unread +papertrail -- from:support@papertrailapp.com
notmuch tag -new -unread +codeclimate -- from:hello@codeclimate.com
notmuch tag -new -unread +basecamp -- from:notifications@basecamp.com

# Remaining new mail goes to the inbox
notmuch tag -new +inbox -- tag:new AND NOT tag:unread
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

# Mark all archived mail
notmuch tag +archive -- folder:WSU/Archive

# Remove inbox tag from all mail in archive
notmuch tag -inbox -- tag:archive AND tag:inbox