mail/.notmuch/hooks/post-new: Tag dj-static messages
[dotfiles-public.git] / src / mail / .notmuch / hooks / post-new
1 #!/bin/sh
2
3 # tag all message from mailing lists
4 notmuch tag +aubio -- tag:new and to:aubio-user@aubio.org
5 notmuch tag +be -- tag:new and to:be-devel@bugseverywhere.org
6 notmuch tag +bluetooth -- tag:new and to:linux-bluetooth@vger.kernel.org
7 notmuch tag +catalyst -- tag:new and to:gentoo-catalyst@lists.gentoo.org
8 notmuch tag +celery -- tag:new and to:celery@noreply.github.com
9 notmuch tag +comedi -- tag:new and to:comedi_list@googlegroups.com
10 notmuch tag +copyleft -- tag:new and to:copyleft-next@lists.fedorahosted.org
11 notmuch tag +cython -- tag:new and \( to:cython-users@googlegroups.com or to:cython-devel@python.org \)
12 notmuch tag +docker -- tag:new and \( to:docker@noreply.github.com or to:docker-user@googlegroups.com \)
13 notmuch tag +docker-registry -- tag:new and to:docker-registry@noreply.github.com
14 notmuch tag +dj-static -- tag:new and to:dj-static@noreply.github.com
15 notmuch tag +fontconfig -- tag:new and to:fontconfig@lists.freedesktop.org
16 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 or from:planet-gentoo@rss2email.invalid or from:gentoo-universe@rss2email.invalid \)
17 notmuch tag +gentoo-prefix -- tag:new and to:gentoo-alt@lists.gentoo.org
18 notmuch tag +gentoo-python -- tag:new and \( to:gentoo-python@lists.gentoo.org or to:python@gentoo.org \)
19 notmuch tag +git -- tag:new and \( to:git@vger.kernel.org or to:progit@noreply.github.com \)
20 notmuch tag +github -- tag:new and from:support@github.com
21 notmuch tag +gunicorn -- tag:new and to:gunicorn@noreply.github.com
22 notmuch tag +libgit2 -- tag:new and \( to:libgit2@noreply.github.com or to:pygit2@noreply.github.com \)
23 notmuch tag +gitorious -- tag:new and to:gitorious@googlegroups.com
24 notmuch tag +gnupg -- tag:new and \( to:gnupg-devel@gnupg.org or to:gnupg-announce@gnupg.org \)
25 notmuch tag +gnuplot -- tag:new and to:gnuplot-beta@lists.sourceforge.net
26 notmuch tag +gramps -- tag:new and to:gramps-devel@lists.sourceforge.net
27 notmuch tag +hdf -- tag:new and to:hdf-forum@hdfgroup.org
28 notmuch tag +html2text -- tag:new and to:html2text@noreply.github.com
29 notmuch tag +hub -- tag:new and to:hub@noreply.github.com
30 notmuch tag +hubot -- tag:new and to:hubot-scripts@noreply.github.com
31 notmuch tag +icalendar -- tag:new and to:icalendar@noreply.github.com
32 notmuch tag +ipython -- tag:new and \( to:ipython-dev@scipy.org or to:ipython-dev@scipy.net or to:ipython-user@scipy.org or to:ipython-user@scipy.net or to:ipython@noreply.github.com or to:ipythonblocks@noreply.github.com \)
33 notmuch tag +jinja -- tag:new and \( to:jinja2@noreply.github.com or subject:jinja \)
34 notmuch tag +kerberos -- tag:new and \( to:krbdev@mit.edu or to:kerberos@mit.edu or to:kerberos-announce@mit.edu \)
35 notmuch tag +kibana -- tag:new and to:kibana@noreply.github.com
36 notmuch tag +kmod -- tag:new and to:python-kmod@noreply.github.com
37 notmuch tag +man -- tag:new and to:linux-man@vger.kernel.org
38 notmuch tag +mlmmj -- tag:new and to:mlmmj@mlmmj.org
39 notmuch tag +monkeysphere -- tag:new and to:monkeysphere@lists.riseup.net
40 notmuch tag +mdp -- tag:new and \( mdp-toolkit@noreply.github.com or to:mdp-toolkit-users@lists.sourceforge.net \)
41 notmuch tag +notmuch -- tag:new and to:notmuch@notmuchmail.org
42 notmuch tag +pelican -- tag:new and \( to:pelican@noreply.github.com or to:pelican-themes@noreply.github.com \)
43 notmuch tag +persona -- tag:new and to:persona@noreply.github.com
44 notmuch tag +portage -- tag:new and \( to:gentoo-portage-dev@lists.gentoo.org \)
45 notmuch tag +pycrypto -- tag:new and to:pycrypto@noreply.github.com
46 notmuch tag +pycuda -- tag:new and to:pycuda@noreply.github.com
47 notmuch tag +python -- tag:new and \( to:python-list@python.org or to:python-announce@python.org or from:report@bugs.python.org \)
48 notmuch tag +roundup -- tag:new and \( to:roundup-devel@lists.sourceforge.net or to:roundup-users@lists.sourceforge.net \)
49 notmuch tag +rss2email -- tag:new and \( to:rss2email@tremily.us or to:rss2email@noreply.github.com \)
50 notmuch tag +siunitx -- tag:new and to:siunitx@noreply.github.com
51 notmuch tag +simavr -- tag:new and simavr@googlegroups.com
52 notmuch tag +simulavr -- tag:new and \( to:simulavr-devel@nongnu.org or to:simulavr-devel@mail.freesoftware.fsf.org \)
53 notmuch tag +swc -- tag:new and \( to:lists.software-carpentry.org or to:boot-camps@noreply.github.com or to:bc@noreply.github.com or to:website@noreply.github.com or to:site@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 \)
54 notmuch tag +tldp -- tag:new and to:discuss@en.tldp.org
55 notmuch tag +towtruck -- tag:new and to:towtruck@noreply.github.com
56 notmuch tag +venv -- tag:new and to:python-virtualenv@googlegroups.com
57 notmuch tag +wireless +linux -- tag:new and \( to:linux-wireless or to:b43-dev@lists.infradead.org \)
58
59 # tag rss2email stuff, actually sorted by procmail based on headers
60 # which aren't indexed by notmuch
61 notmuch tag +journal -- tag:new and folder:journal
62
63 # tag sysadmin stuff
64 notmuch tag +admin -- tag:new and \( 'subject:report domain' or 'subject:DMARC.*report' \)
65
66 # tag issues from bugtrackers
67 notmuch tag +issue -- tag:new and \( from:bugzilla-daemon@gentoo.org or from:report@bugs.python.org \)
68
69 # archive all messages from "me"
70 notmuch tag -new -- tag:new and \( from:wking@tremily.us or from:wking@drexel.edu or from:tvrkng@gmail.com \)
71
72 # remove new from things we don't want in the inbox
73 notmuch tag +unread -new -- tag:new and \( tag:gramps or tag:notmuch or tag:simulavr \)
74
75 # finally, retag all "new" messages "inbox" and "unread"
76 notmuch tag +inbox +unread -new -- tag:new