79977059da703fb05e6693439757d1a64d2756d4
[dotfiles-public.git] / src / mail / .notmuch / hooks / post-new
1 #!/bin/sh
2
3 # immediately archive all messages from "me"
4 notmuch tag -new -- tag:new and \( from:wking@tremily.us or from:wking@drexel.edu or from tvrkng@gmail.com \)
5
6 # tag all message from mailing lists
7 notmuch tag +be -- tag:new and to:be-devel@bugseverywhere.org
8 notmuch tag +bluetooth -- tag:new and to:linux-bluetooth@vger.kernel.org
9 notmuch tag +catalyst -- tag:new and to:gentoo-catalyst@lists.gentoo.org
10 notmuch tag +comedi -- tag:new and to:comedi_list@googlegroups.com
11 notmuch tag +cython -- tag:new and \( to:cython-users@googlegroups.com or to:cython-devel@python.org \)
12 notmuch tag +gentoo -- tag:new and \( to:gentoo-dev@lists.gentoo.org or to: gentoo-alt@lists.gentoo.org \)
13 notmuch tag +gentoo-python -- tag:new and \( to:gentoo-python@lists.gentoo.org or to:python@gentoo.org \)
14 notmuch tag +git -- tag:new and to:git@vger.kernel.org
15 notmuch tag +github -- tag:new and from:support@github.com
16 notmuch tag +libgit2 -- tag:new and to:libgit2@noreply.github.com
17 notmuch tag +gitorious -- tag:new and to:gitorious@googlegroups.com
18 notmuch tag +gnupg -- tag:new and to:gnupg-devel@gnupg.org
19 notmuch tag +gramps -- tag:new and to:gramps-devel@lists.sourceforge.net
20 notmuch tag +hdf -- tag:new and to:hdf-forum@hdfgroup.org
21 notmuch tag +hub -- tag:new and to:hub@noreply.github.com
22 notmuch tag +kerberos -- tag:new and \( to:krbdev@mit.edu or to:kerberos@mit.edu \)
23 notmuch tag +notmuch -- tag:new and to:notmuch@notmuchmail.org
24 notmuch tag +pelican -- tag:new and \( to:pelican@noreply.github.com or to:pelican-themes@noreply.github.com \)
25 notmuch tag +roundup -- tag:new and \( to:roundup-devel@lists.sourceforge.net or to:roundup-users@lists.sourceforge.net \)
26 notmuch tag +simulavr -- tag:new and \( to:simulavr-devel@nongnu.org \)
27 notmuch tag +swc -- tag:new and \( to:lists.software-carpentry.org or to:boot-camps@noreply.github.com or to:website@noreply.github.com or to:assets@noreply.github.com or to:online-tutorials@noreply.github.com \)
28
29 # tag rss2email stuff, actually sorted by procmail based on headers
30 # which aren't indexed by notmuch
31 notmuch tag +journal -- tag:new and folder:journal
32
33 # tag sysadmin stuff
34 notmuch tag +admin -- tag:new and 'subject:report domain'
35
36 # remove new from things we don't want in the inbox
37 notmuch tag +unread -new -- tag:new and \( tag:gramps or tag:notmuch or tag:simulavr \)
38
39 # finally, retag all "new" messages "inbox" and "unread"
40 notmuch tag +inbox +unread -new -- tag:new