minor: add missing utility
[distro-setup] / sieve / lists.sieve
1 require [ "regex", "variables", "fileinto", "envelope", "mailbox", "imap4flags", "include" ];
2
3 if anyof (
4 header :contains "list-id" "<debian-security-announce.lists.debian.org>",
5 header :contains "list-id" "<ubuntu-security-announce.lists.ubuntu.com>"
6 ) {
7 fileinto :create "sec";
8 stop;
9 }
10
11 if anyof (
12 header :contains "list-id" "<mentors.lists.outreachy.org>"
13 ) {
14 fileinto :create "l/outreachy-mentors";
15 stop;
16 }
17
18 if anyof (
19 header :contains "list-id" "<bbdb-info.lists.sourceforge.net>",
20 header :contains "list-id" "<bug-bash.gnu.org>",
21 header :contains "list-id" "<bug-gnu-emacs.gnu.org>",
22 header :contains "list-id" "<debian-backports.lists.debian.org>",
23 header :contains "list-id" "<debian-security-announce.lists.debian.org>",
24 header :contains "list-id" "<debian-user.lists.debian.org>",
25 header :contains "list-id" "<ding.gnus.org>",
26 header :contains "list-id" "<emacs-devel.gnu.org>",
27 header :contains "list-id" "<emacs-orgmode.gnu.org>",
28 header :contains "list-id" "<git.vger.kernel.org>",
29 header :contains "list-id" "<help-bash.gnu.org>",
30 header :contains "list-id" "<help-gnu-emacs.gnu.org>",
31 header :contains "list-id" "<hyperkitty-devel.lists.fedorahosted.org>",
32 header :contains "list-id" "<ipxe-devel.lists.ipxe.org>",
33 header :contains "list-id" "<kplug-list.kernel-panic.org>",
34 header :contains "list-id" "<kplug-newbie.kernel-panic.org>",
35 header :contains "list-id" "<libreplanet-discuss.libreplanet.org>",
36 header :contains "list-id" "<linux-btrfs.vger.kernel.org>",
37 header :contains "list-id" "<linux-fai.uni-koeln.de>",
38 header :contains "list-id" "<linux-fai-devel.uni-koeln.de>",
39 header :contains "list-id" "<linux-libre.fsfla.org>",
40 header :contains "list-id" "<maru-os-dev.googlegroups.com>",
41 header :contains "list-id" "<mediawiki-l.lists.wikimedia.org>",
42 header :contains "list-id" "<pywikibot.lists.wikimedia.org>",
43 header :contains "list-id" "<pywikipedia-l.lists.wikimedia.org>",
44 header :contains "list-id" "<unison-hackers.lists.seas.upenn.edu>",
45 header :contains "list-id" "<unison-users.yahoogroups.com>",
46 header :contains "list-id" "<whispersystems.lists.riseup.net>",
47 header :contains "list-id" "<wikitech-l.lists.wikimedia.org>",
48 header :contains "list-id" "<xapian-devel.lists.xapian.org>",
49 header :contains "list-id" "<kdeconnect.kde.org>",
50 header :contains "list-id" "<mu-discuss.googlegroups.com>",
51 header :contains "list-id" "<<devel.mediagoblin.org>",
52 header :contains "list-id" "<maru-os.googlegroups.com>",
53 header :contains "list-id" "<listhelper-moderate.nongnu.org>",
54 header :contains "list-id" "<coreboot.coreboot.org>",
55 header :contains "list-id" "<mailman-users.python.org>",
56 header :contains "list-id" "<duplicity-talk.nongnu.org>",
57 header :contains "list-id" "<qemu-devel.nongnu.org>",
58 header :contains "list-id" "<exim-dev.exim.org>",
59 header :contains "list-id" "<exim-users.exim.org>",
60 header :contains "list-id" "<octave-maintainers.gnu.org>",
61 header :contains "list-id" "<discuss-gnuradio.gnu.org>",
62 header :contains "list-id" "<seabios.seabios.org>",
63 header :contains "list-id" "<freetype-devel.nongnu.org>",
64 header :contains "list-id" "<xmonad.haskell.org>") {
65 if header :regex "list-id" "<([a-z_0-9-]+)[.@]" {
66 set :lower "listname" "${1}";
67 fileinto :create "l/${listname}";
68 }
69 }
70 if anyof (
71 header :contains "list-id" "<websites.lists.fedoraproject.org>",
72 header :contains "list-id" "<docs.lists.fedoraproject.org>",
73 header :contains "list-id" "<users.lists.fedoraproject.org>") {
74 if header :regex "list-id" "<([a-z_0-9-]+)[.@]" {
75 set :lower "listname" "${1}";
76 fileinto :create "l/fedora.${listname}";
77 }
78 }
79
80 if anyof (
81 header :contains "list-id" "<activists_masspirates.org.lists.mayfirst.org>",
82 header :contains "list-id" "<gnu-prog-discuss.gnu.org>",
83 header :contains "list-id" "<gnu-prog.gnu.org>",
84 header :contains "list-id" "<gnu-community-private.gnu.org>",
85 header :contains "list-id" "<gvc.gnu.org>",
86 header :contains "list-id" "<discuss.blu.org>",
87 header :contains "list-id" "<Spdx-tech.lists.spdx.org>",
88 header :contains "list-id" "<Spdx-legal.lists.spdx.org>",
89 header :contains "list-id" "<info-gnu.gnu.org>",
90 header :contains "from" "<general-info@artisansasylum.com>",
91 header :contains "list-id" "<spdx.lists.spdx.org>"
92 ) {
93 fileinto :create "community";
94 stop;
95 }
96
97 if allof (
98 address :is "from" "mailman-owner@zope.org",
99 header :is "subject" "zope.org mailing list memberships reminder"
100 ) {
101 discard;
102 stop;
103 }