mail:notmuch:hooks:post-new: Lots of new tags
[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 +copyleft -- tag:new and to:copyleft-next@lists.fedorahosted.org
12 notmuch tag +cython -- tag:new and \( to:cython-users@googlegroups.com or to:cython-devel@python.org \)
13 notmuch tag +gentoo -- tag:new and \( to:gentoo-dev@lists.gentoo.org or to:gentoo-dev@gentoo.org or to:gentoo-alt@lists.gentoo.org or from:bugzilla-daemon@gentoo.org \)
14 notmuch tag +gentoo-prefix -- tag:new and to:gentoo-alt@lists.gentoo.org
15 notmuch tag +gentoo-python -- tag:new and \( to:gentoo-python@lists.gentoo.org or to:python@gentoo.org \)
16 notmuch tag +git -- tag:new and \( to:git@vger.kernel.org or to:progit@noreply.github.com \)
17 notmuch tag +github -- tag:new and from:support@github.com
18 notmuch tag +libgit2 -- tag:new and \( to:libgit2@noreply.github.com or to:pygit2@noreply.github.com \)
19 notmuch tag +gitorious -- tag:new and to:gitorious@googlegroups.com
20 notmuch tag +gnupg -- tag:new and \( to:gnupg-devel@gnupg.org or to:gnupg-announce@gnupg.org \)
21 notmuch tag +gramps -- tag:new and to:gramps-devel@lists.sourceforge.net
22 notmuch tag +hdf -- tag:new and to:hdf-forum@hdfgroup.org
23 notmuch tag +html2text -- tag:new and to:html2text@noreply.github.com
24 notmuch tag +hub -- tag:new and to:hub@noreply.github.com
25 notmuch tag +ipython -- tag:new and \( to:ipython-dev@scipy.org or to:ipython-user@scipy.org or to:ipython@noreply.github.com or to:ipythonblocks@noreply.github.com \)
26 notmuch tag +jinja -- tag:new and \( to:jinja2@noreply.github.com or subject:jinja \)
27 notmuch tag +kerberos -- tag:new and \( to:krbdev@mit.edu or to:kerberos@mit.edu or to:kerberos-announce@mit.edu \)
28 notmuch tag +kmod -- tag:new and to:python-kmod@noreply.github.com
29 notmuch tag +mlmmj -- tag:new and to:mlmmj@mlmmj.org
30 notmuch tag +monkeysphere -- tag:new and to:monkeysphere@lists.riseup.net
31 notmuch tag +notmuch -- tag:new and to:notmuch@notmuchmail.org
32 notmuch tag +pelican -- tag:new and \( to:pelican@noreply.github.com or to:pelican-themes@noreply.github.com \)
33 notmuch tag +python -- tag:new and \( to:python-list@python.org or to:python-announce@python.org or from:report@bugs.python.org \)
34 notmuch tag +roundup -- tag:new and \( to:roundup-devel@lists.sourceforge.net or to:roundup-users@lists.sourceforge.net \)
35 notmuch tag +rss2email -- tag:new and \( to:rss2email@tremily.us or to:rss2email@noreply.github.com \)
36 notmuch tag +simavr -- tag:new and simavr@googlegroups.com
37 notmuch tag +simulavr -- tag:new and \( to:simulavr-devel@nongnu.org or to:simulavr-devel@mail.freesoftware.fsf.org \)
38 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:ipythonblocks@noreply.github.com or to:notebooks@noreply.github.com or to:online-tutorials@noreply.github.com \)
39 notmuch tag +towtruck -- tag:new and to:towtruck@noreply.github.com
40 notmuch tag +venv -- tag:new and to:python-virtualenv@googlegroups.com
41 notmuch tag +wireless +linux -- tag:new and \( to:linux-wireless or to:b43-dev@lists.infradead.org \)
42
43 # tag rss2email stuff, actually sorted by procmail based on headers
44 # which aren't indexed by notmuch
45 notmuch tag +journal -- tag:new and folder:journal
46
47 # tag sysadmin stuff
48 notmuch tag +admin -- tag:new and \( 'subject:report domain' or 'subject:DMARC.*report' \)
49
50 # tag issues from bugtrackers
51 notmuch tag +issue -- tag:new and \( from:bugzilla-daemon@gentoo.org or from:report@bugs.python.org \)
52
53 # remove new from things we don't want in the inbox
54 notmuch tag +unread -new -- tag:new and \( tag:gramps or tag:notmuch or tag:simulavr \)
55
56 # finally, retag all "new" messages "inbox" and "unread"
57 notmuch tag +inbox +unread -new -- tag:new