mail/.notmuch/hooks/post-new: Tag Linux man-page 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 +fontconfig -- tag:new and to:fontconfig@lists.freedesktop.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 or from:planet-gentoo@rss2email.invalid or from:gentoo-universe@rss2email.invalid \)
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 +gunicorn -- tag:new and to:gunicorn@noreply.github.com
19 notmuch tag +libgit2 -- tag:new and \( to:libgit2@noreply.github.com or to:pygit2@noreply.github.com \)
20 notmuch tag +gitorious -- tag:new and to:gitorious@googlegroups.com
21 notmuch tag +gnupg -- tag:new and \( to:gnupg-devel@gnupg.org or to:gnupg-announce@gnupg.org \)
22 notmuch tag +gramps -- tag:new and to:gramps-devel@lists.sourceforge.net
23 notmuch tag +hdf -- tag:new and to:hdf-forum@hdfgroup.org
24 notmuch tag +html2text -- tag:new and to:html2text@noreply.github.com
25 notmuch tag +hub -- tag:new and to:hub@noreply.github.com
26 notmuch tag +hubot -- tag:new and to:hubot-scripts@noreply.github.com
27 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 \)
28 notmuch tag +jinja -- tag:new and \( to:jinja2@noreply.github.com or subject:jinja \)
29 notmuch tag +kerberos -- tag:new and \( to:krbdev@mit.edu or to:kerberos@mit.edu or to:kerberos-announce@mit.edu \)
30 notmuch tag +kibana -- tag:new and to:kibana@noreply.github.com
31 notmuch tag +kmod -- tag:new and to:python-kmod@noreply.github.com
32 notmuch tag +man -- tag:new and to:linux-man@vger.kernel.org
33 notmuch tag +mlmmj -- tag:new and to:mlmmj@mlmmj.org
34 notmuch tag +monkeysphere -- tag:new and to:monkeysphere@lists.riseup.net
35 notmuch tag +mdp -- tag:new and \( mdp-toolkit@noreply.github.com or to:mdp-toolkit-users@lists.sourceforge.net \)
36 notmuch tag +notmuch -- tag:new and to:notmuch@notmuchmail.org
37 notmuch tag +pelican -- tag:new and \( to:pelican@noreply.github.com or to:pelican-themes@noreply.github.com \)
38 notmuch tag +portage -- tag:new and \( to:gentoo-portage-dev@lists.gentoo.org \)
39 notmuch tag +pycrypto -- tag:new and to:pycrypto@noreply.github.com
40 notmuch tag +pycuda -- tag:new and to:pycuda@noreply.github.com
41 notmuch tag +python -- tag:new and \( to:python-list@python.org or to:python-announce@python.org or from:report@bugs.python.org \)
42 notmuch tag +roundup -- tag:new and \( to:roundup-devel@lists.sourceforge.net or to:roundup-users@lists.sourceforge.net \)
43 notmuch tag +rss2email -- tag:new and \( to:rss2email@tremily.us or to:rss2email@noreply.github.com \)
44 notmuch tag +siunitx -- tag:new and to:siunitx@noreply.github.com
45 notmuch tag +simavr -- tag:new and simavr@googlegroups.com
46 notmuch tag +simulavr -- tag:new and \( to:simulavr-devel@nongnu.org or to:simulavr-devel@mail.freesoftware.fsf.org \)
47 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 \)
48 notmuch tag +tldp -- tag:new and to:discuss@en.tldp.org
49 notmuch tag +towtruck -- tag:new and to:towtruck@noreply.github.com
50 notmuch tag +venv -- tag:new and to:python-virtualenv@googlegroups.com
51 notmuch tag +wireless +linux -- tag:new and \( to:linux-wireless or to:b43-dev@lists.infradead.org \)
52
53 # tag rss2email stuff, actually sorted by procmail based on headers
54 # which aren't indexed by notmuch
55 notmuch tag +journal -- tag:new and folder:journal
56
57 # tag sysadmin stuff
58 notmuch tag +admin -- tag:new and \( 'subject:report domain' or 'subject:DMARC.*report' \)
59
60 # tag issues from bugtrackers
61 notmuch tag +issue -- tag:new and \( from:bugzilla-daemon@gentoo.org or from:report@bugs.python.org \)
62
63 # archive all messages from "me"
64 notmuch tag -new -- tag:new and \( from:wking@tremily.us or from:wking@drexel.edu or from:tvrkng@gmail.com \)
65
66 # remove new from things we don't want in the inbox
67 notmuch tag +unread -new -- tag:new and \( tag:gramps or tag:notmuch or tag:simulavr \)
68
69 # finally, retag all "new" messages "inbox" and "unread"
70 notmuch tag +inbox +unread -new -- tag:new