]> git.wh0rd.org Git - home.git/blob - .config/mail/filters.siv
3d2a96acf6afcc53d3b91807ca141c5fe5bfc952
[home.git] / .config / mail / filters.siv
1 # http://thsmi.github.com/sieve-reference/en/
2
3 require "fileinto";
4 require "imap4flags";
5 require "body";
6 require "regex";
7 # require "vnd.dovecot.debug";
8
9
10 # To: Me
11 if anyof (header :contains "CC" "vapier@gentoo.org")
12 {
13         setflag "G";
14 }
15
16
17 #
18 # Spam
19 #
20 if anyof (
21         header :regex "Subject" "(Buy OEM|0EM) Software",
22         header :is "Subject" "cheap oem soft shipping //orldwide",
23         header :is "Subject" "Corel Draw",
24         header :regex "Subject" "Last chance (for lower rates|to supercharge)"
25 )
26 {
27         fileinto "trash";
28         stop;
29 }
30 if anyof (
31         header :contains "Content-Type" "text/html;",
32         body :raw :contains ["<html>", "<tbody>"]
33 )
34 {
35         fileinto "trash/spam";
36         stop;
37 }
38 #if anyof (body :raw :regex ["filename=.*\.exe", "filename=.*\.pif", "filename=.*\.scr", "filename=.*\.zip"])
39 #{
40 #       fileinto "trash/spam";
41 #       stop;
42 #}
43
44
45 # SFC
46 if anyof (
47         header :contains "List-Id" "<busybox-compliance.sfconservancy.org>",
48         header :contains "To" "busybox-compliance@sfconservancy.org",
49         header :contains "List-Id" "<linux-compliance.sfconservancy.org>"
50 )
51 {
52         fileinto "misc projects/sfc";
53         stop;
54 }
55
56
57 # From: @chromium.org
58 #if anyof (header :contains "From" "@chromium.org")
59 #{
60 #       setflag "G";
61 #}
62
63
64 # Linux
65 if anyof (
66         header :contains "List-Id" "<users.linux.kernel.org>",
67         header :contains "List-id" "<linux-arch.vger.kernel.org>"
68 )
69 {
70         fileinto "misc projects/linux";
71         stop;
72 }
73
74
75 # Linux: device-tree
76 if anyof (
77         header :contains "List-Id" "<devicetree.vger.kernel.org>",
78         header :contains "List-Id" "<devicetree-compiler.vger.kernel.org>"
79 )
80 {
81         fileinto "misc projects/linux/embedded";
82         stop;
83 }
84
85
86 #
87 # Misc projects
88 #
89 if anyof (
90         # acl
91         header :contains "List-Id" "<acl-devel.nongnu.org>",
92         header :contains "To" "acl-devel@nongnu.org",
93         header :contains "Cc" "acl-devel@nongnu.org",
94         # alsa
95         header :contains "List-Id" "<alsa-devel.alsa-project.org>",
96         # apcupsd
97         header :contains "List-Id" "<apcupsd-users.lists.sourceforge.net>",
98         # autotools
99         header :contains "List-Id" "<libtool.gnu.org>",
100         header :contains "List-Id" "<bug-automake.gnu.org>",
101         header :contains "List-Id" "<bug-libtool.gnu.org>",
102         header :contains "List-Id" "<bug-autoconf.gnu.org>",
103         header :contains "List-Id" "<autoconf.gnu.org>",
104         header :contains "List-Id" "<bug-m4.gnu.org>",
105         # bash
106         header :contains "List-Id" "<bug-bash.gnu.org>",
107         # bitpim
108         header :contains "List-Id" "<bitpim-devel.lists.sourceforge.net>",
109         # chrome
110         header :contains "List-Id" "<chrome-notebook-pilot-users.googlegroups.com>",
111         # cldr
112         header :contains "List-Id" "<cldr-users.unicode.org>",
113         # coLinux
114         header :contains "List-Id" "<colinux-users.lists.sourceforge.net>",
115         # coreutils
116         header :contains "List-Id" "<bug-coreutils.gnu.org>",
117         header :contains "List-Id" "<coreutils.gnu.org>",
118         header :contains "List-Id" "<bug-coreutils.nongnu.org>",
119         # cpio
120         header :contains "List-Id" "<bug-cpio.gnu.org>",
121         # cracklib
122         header :contains "List-Id" "<cracklib-devel.lists.sourceforge.net>",
123         # dietlibc
124         header :contains "To" "dietlibc@fefe.de",
125         header :contains "Cc" "dietlibc@fefe.de",
126         # DirectFB
127         header :contains "List-Id" "<directfb-users.directfb.org>",
128         header :contains "List-Id" "<directfb-dev.directfb.org>",
129         # dokuwiki
130         header :contains "List-Id" "<dokuwiki.list-id.freelists.org>",
131         # dropbear
132         header :contains "List-Id" "<dropbear.ucc.asn.au>",
133         # dxr2
134         header :contains "Subject" "[Dxr2-devel]",
135         # ed
136         header :contains "List-Id" "<bug-ed.gnu.org>",
137         # file
138         header :contains "List-Id" "<file.mx.gw.com>",
139         # fontforge/fontconfig
140         header :contains "List-Id" "<fontforge-devel.lists.sourceforge.net>",
141         header :contains "List-Id" "<fontconfig.lists.freedesktop.org>",
142         # gd
143         header :contains "List-Post" "<mailto:gd-devel@lists.php.net>",
144         header :contains "To" "security@libgd.org",
145         header :contains "Cc" "security@libgd.org",
146         # genext2fs
147         header :contains "List-Id" "<genext2fs-devel.lists.sourceforge.net>",
148         # gnulib
149         header :contains "List-Id" "<bug-gnulib.gnu.org>",
150         # gpm
151         header :contains "List-Id" "<gpm.lists.linux.it>",
152         # gpsd
153         header :contains "List-Id" "<gpsd-dev.nongnu.org>",
154         # grep
155         header :contains "List-Id" "<bug-grep.gnu.org>",
156         # gzip
157         header :contains "List-Id" "<bug-gzip.gnu.org>",
158         # hal
159         header :contains "List-Id" "<hal.lists.freedesktop.org>",
160         # insight
161         header :contains "List-Id" "<insight.sourceware.org>",
162         # gmp
163         header :contains "List-Id" "<gmp-discuss.gmplib.org>",
164         header :contains "List-Id" "<gmp-bugs.gmplib.org>",
165         header :contains "List-Id" "<gmp-devel.gmplib.org>",
166         # k3b
167         header :contains "List-Id" "<k3b-user.lists.sourceforge.net>",
168         # kbd
169         header :contains "List-Id" "<kbd.lists.altlinux.org>",
170         # libquicktime
171         header :contains "List-Id" "<libquicktime-devel.lists.sourceforge.net>",
172         # libtirpc
173         header :contains "List-Id" "<libtirpc-devel.lists.sourceforge.net>",
174         # Linux API
175         header :contains "List-Id" "<linux-api.vger.kernel.org>",
176         # linux-man
177         header :contains "List-Id" "<linux-man.vger.kernel.org>",
178         # lirc
179         header :contains "List-Id" "<lirc-list.lists.sourceforge.net>",
180         # LTP
181         header :contains "List-Id" "<ltp-list.lists.sourceforge.net>",
182         header :contains "List-Id" "<ltp.lists.linux.it>",
183         # m3
184         header :contains "To" "wagner@pint.elegosoft.com",
185         header :contains "Cc" "wagner@pint.elegosoft.com",
186         header :contains "To" "m3devel@elegosoft.com",
187         header :contains "Cc" "m3devel@elegosoft.com",
188         header :contains "To" "m3devel@birch.elego.de",
189         header :contains "Cc" "m3devel@birch.elego.de",
190         # metalog
191         header :contains "List-Id" "<metalog-users.lists.sourceforge.net>",
192         # mplayer
193         header :contains "To" "dvdnav-discuss@mplayerhq.hu",
194         header :contains "Cc" "dvdnav-discuss@mplayerhq.hu",
195         # module-init-tools
196         header :contains "List-Id" "<linux-modules.vger.kernel.org>",
197         # mpfr
198         header :contains "List-Id" "<mpfr.loria.fr>",
199         # mtools
200         header :contains "List-Id" "<info-mtools.gnu.org>",
201         # mutt
202         header :contains "List-Id" "<mutt-dev.mutt.org>",
203         # nano
204         header :contains "List-Id" "<nano-devel.gnu.org>",
205         # nasm
206         header :contains "List-Id" "<nasm-devel.lists.sourceforge.net>",
207         # nbd
208         header :contains "List-Id" "<nbd-general.lists.sourceforge.net>",
209         # ncurses
210         header :contains "List-Id" "<bug-ncurses.gnu.org>",
211         # net-tools
212         header :contains "List-Id" "<net-tools-devel.lists.sourceforge.net>",
213         # NFS
214         header :contains "List-Id" "<nfs.lists.sourceforge.net>",
215         header :contains "List-Id" "<linux-nfs.vger.kernel.org>",
216         # ode
217         header :contains "List-Id" "<ode.ode.org>",
218         header :contains "List-Id" "<ode.q12.org>",
219         # Open Group
220         header :contains "X-Loop" "austin-group-l@opengroup.org",
221         # powertop
222         header :contains "List-Id" "<discuss.lesswatts.org>",
223         # procps
224         header :contains "List-Id" "<procps.freelists.org>",
225         # patch
226         header :contains "List-Id" "<bug-patch.gnu.org>",
227         # readline
228         header :contains "List-Id" "<bug-readline.gnu.org>",
229         # reiserfs
230         header :contains "List-Id" "<reiserfs-devel.vger.kernel.org>",
231         # rsync
232         header :contains "List-Id" "<rsync.lists.samba.org>",
233         # SDL
234         header :contains "List-Id" "<sdl.libsdl.org>",
235         header :contains "List-Id" "<sdl-libsdl.org>",
236         # shadow
237         header :contains "List-Id" "<shadow.pld.org.pl>",
238         header :contains "List-Id" "<pkg-shadow-devel.lists.alioth.debian.org>",
239         # sigrok
240         header :contains "List-Id" "<sigrok-devel.lists.sourceforge.net>",
241         # speex
242         header :contains "List-Id" "<speex-dev.xiph.org>",
243         # sqlite
244         header :contains "List-Id" "<sqlite-users.sqlite.org>",
245         # ssl
246         header :contains "Sender" "owner-openssl-dev@openssl.org",
247         # strace
248         header :contains "List-Id" "<strace-devel.lists.sourceforge.net>",
249         header :contains "To" "strace-devel@lists.sourceforge.net",
250         header :contains "Cc" "strace-devel@lists.sourceforge.net",
251         # sudo
252         header :contains "List-Id" "<sudo-workers.sudo.ws>",
253         # syslinux
254         header :contains "List-Id" "<syslinux.zytor.com>",
255         # sysvinit-devel
256         header :contains "List-Id" "<sysvinit-devel.nongnu.org>",
257         # tar
258         header :contains "List-Id" "<bug-tar.gnu.org>",
259         # timezone
260         header :contains "List-Id" "<tz.iana.org>",
261         # uClinux
262         header :contains "List-Id" "<uclinux-dev.uclinux.org>",
263         # udev
264         header :contains "List-Id" "<linux-hotplug-devel.lists.sourceforge.net>",
265         # urjtag
266         header :contains "List-Id" "<urjtag-development.lists.sourceforge.net>",
267         # util-linux
268         header :contains "X-Mailing-List" "util-linux@vger.kernel.org",
269         # wget
270         header :contains "List-Id" "<bug-wget.gnu.org>",
271         # yasm
272         header :contains "List-Id" "<yasm-devel.tortall.net>",
273         # zlib
274         header :contains "List-Id" "<zlib-devel_madler.net.madler.net>",
275         header :contains "To" "zlib-devel@madler.net",
276         header :contains "Cc" "zlib-devel@madler.net"
277 )
278 {
279         fileinto "misc projects";
280         stop;
281 }
282
283 # Project: uclibc
284 if anyof (
285         header :contains "List-Id" "<uclibc.uclibc.org>",
286         header :contains "List-Id" "<uclibc-cvs.uclibc.org>",
287         header :contains "List-Id" "<uclibc-admins.lists.busybox.net>",
288         header :contains "To" "uclibc@uclibc.org",
289         header :contains "Cc" "uclibc@uclibc.org",
290         header :contains "To" "uclibc-cvs@uclibc.org",
291         header :contains "Cc" "uclibc-cvs@uclibc.org"
292 )
293 {
294         fileinto "misc projects/uclibc";
295         stop;
296 }
297
298 # Project: busybox (after uClibc)
299 if anyof (
300         header :contains "List-Id" "<busybox.mail.busybox.net>",
301         header :contains "List-Id" "<busybox-cvs.busybox.net>",
302         header :contains "List-Id" "<busybox.busybox.net>",
303         header :contains "To" "busybox@busybox.net",
304         header :contains "Cc" "busybox@busybox.net"
305 )
306 {
307         fileinto "misc projects/busybox";
308         stop;
309 }
310
311 # buildroot (after uClibc)
312 if anyof (
313         header :contains "List-Id" "<buildroot.busybox.net>",
314         header :contains "To" "buildroot@buildroot.org",
315         header :contains "Cc" "buildroot@buildroot.org"
316 )
317 {
318         fileinto "misc projects/buildroot";
319         stop;
320 }
321
322
323 #
324 # Toolchain
325 #
326 if anyof (
327         header :contains "List-Id" "<gdb-patches.sourceware.org>",
328         header :contains "List-Id" "<gdb.sourceware.org>",
329         header :contains "To" "gdb@sourceware.org",
330         header :contains "Cc" "gdb@sourceware.org",
331         header :contains "To" "gdb-patches@sourceware.org",
332         header :contains "Cc" "gdb-patches@sourceware.org"
333 )
334 {
335         fileinto "misc projects/toolchain";
336
337         if anyof(body :text :contains "sim/")
338         {
339                 setflag "G";
340         }
341         stop;
342 }
343
344 if anyof (
345         # binutils
346         header :contains "List-Id" "<bug-binutils.gnu.org>",
347         header :contains "List-Post" "<mailto:binutils@sourceware.org>",
348         # ccache
349         header :contains "List-Id" "<ccache.lists.samba.org>",
350         # elfutils
351         header :contains "List-Id" "<elfutils-devel.lists.fedorahosted.org>",
352         header :contains "To" "elfutils-devel@lists.fedorahosted.org",
353         header :contains "Cc" "elfutils-devel@lists.fedorahosted.org",
354         header :contains "List-Id" "<elfutils-devel.sourceware.org>",
355         # gcc
356         header :contains "List-Post" "<mailto:gcc-patches@gcc.gnu.org>",
357         # glibc
358         header :regex "List-Post" "<mailto:libc-(alpha|help|locales|ports|stable)@sourceware\.org>",
359         header :regex "To" "libc-(alpha|help|locales|ports|stable)@sourceware\.org",
360         header :regex "Cc" "libc-(alpha|help|locales|ports|stable)@sourceware\.org",
361         # gnuconfig
362         header :contains "List-Id" "<config-patches.gnu.org>",
363         # newlib
364         header :contains "List-Post" "<mailto:newlib@sourceware.org>",
365         # qemu
366         header :contains "List-Post" "<mailto:qemu-devel@nongnu.org>",
367         header :contains "To" "qemu-devel@nongnu.org",
368         header :contains "Cc" "qemu-devel@nongnu.org",
369         # sourceware
370         header :contains "List-Post" "<mailto:cgen@sourceware.org>",
371         header :contains "List-Post" "<mailto:crossgcc@sourceware.org>",
372         header :contains "From" "sourceware-bugzilla@sourceware.org",
373         # misc
374         header :contains "To" "libunwind-devel@nongnu.org",
375         header :contains "Cc" "libunwind-devel@nongnu.org"
376 )
377 {
378         fileinto "misc projects/toolchain";
379         stop;
380 }
381
382
383 # Project: E
384 if anyof (
385         header :contains "List-Id" "<enlightenment-cvs.lists.sourceforge.net>",
386         header :contains "List-Id" "<enlightenment-devel.lists.sourceforge.net>",
387         header :contains "List-Id" "<evidence-cvs.lists.sourceforge.net>"
388 )
389 {
390         fileinto "misc projects/e";
391         stop;
392 }
393
394
395 # Project: u-boot
396 if anyof (
397         header :contains "List-Id" "<u-boot-users.lists.sourceforge.net>",
398         header :contains "List-Id" "<u-boot.lists.denx.de>",
399         header :contains "To" "u-boot@lists.denx.de",
400         header :contains "Cc" "u-boot@lists.denx.de"
401 )
402 {
403         fileinto "misc projects/u-boot";
404         stop;
405 }
406
407
408 #
409 # Arches
410 #
411 if anyof (
412         # Alpha
413         header :contains "List-Id" "<linux-alpha.vger.kernel.org>",
414         # ARM
415         header :contains "List-Id" "<boot-architecture.lists.linaro.org>",
416         header :contains "List-Id" "<cross-distro.lists.linaro.org>",
417         header :contains "List-Id" "<armedslack.lists.armedslack.org>",
418         header :contains "List-Id" "<iyonix-support.freelists.org>",
419         # Blackfin
420         header :contains "List-Id" "<uclinux-dist-devel.blackfin.uclinux.org>",
421         # s390
422         header :contains "X-Mailing-List" "linux-s390@vger.kernel.org",
423         header :contains "List-Id" "<hercules-390.yahoogroups.com>",
424         header :contains "To" "linux-390@vm.marist.edu",
425         header :contains "Cc" "linux-390@vm.marist.edu",
426         # m68k
427         header :contains "List-Id" "linux-mac68k.lists.purplehat.net",
428         # parisc
429         header :contains "List-Id" "<parisc-linux.lists.parisc-linux.org>",
430         header :contains "List-Id" "<linux-parisc.vger.kernel.org>",
431         # SuperH
432         header :contains "List-Id" "<linuxsh-dev.lists.sourceforge.net>",
433         header :contains "List-Id" "<linuxsh-cvs.lists.sourceforge.net>",
434         header :contains "List-Id" "<linuxdc-dev.lists.sourceforge.net>",
435         header :contains "List-Id" "<linux-sh.vger.kernel.org>"
436 )
437 {
438         fileinto "misc projects/archs";
439         stop;
440 }
441
442
443 #
444 # Gentoo
445 #
446
447 # Gentoo: graphics
448 if anyof (
449         header :contains "To" "graphics@gentoo.org",
450         header :contains "Cc" "graphics@gentoo.org"
451 )
452 {
453         fileinto "gentoo.org/bugs/graphics";
454         stop;
455 }
456
457 # Gentoo: openrc
458 if anyof (
459         header :contains "To" "openrc@gentoo.org",
460         header :contains "Cc" "openrc@gentoo.org"
461 )
462 {
463         fileinto "gentoo.org/bugs/base-system/openrc";
464         stop;
465 }
466
467 # Gentoo: base-system
468 if anyof (
469         header :contains "To" "base-system@gentoo.org",
470         header :contains "Cc" "base-system@gentoo.org"
471 )
472 {
473         fileinto "gentoo.org/bugs/base-system";
474         stop;
475 }
476
477 # Gentoo: portage
478 if anyof (
479         header :regex "To" "(dev|tools)-portage@gentoo\\.org",
480         header :regex "Cc" "(dev|tools)-portage@gentoo\\.org",
481         header :contains "List-Id" "<gentoo-portage-dev.gentoo.org>"
482 )
483 {
484         fileinto "gentoo.org/bugs/portage";
485         stop;
486 }
487
488 # Gentoo: portage utils
489 if anyof (
490         header :contains "To" "portage-utils@gentoo.org",
491         header :contains "Cc" "portage-utils@gentoo.org"
492 )
493 {
494         fileinto "gentoo.org/bugs/portage-utils";
495         stop;
496 }
497
498 # Gentoo: docs team
499 if anyof (
500         header :contains "To" "docs-team@gentoo.org",
501         header :contains "Cc" "docs-team@gentoo.org",
502         header :contains "To" "gentoo-doc@lists.gentoo.org",
503         header :contains "Cc" "gentoo-doc@lists.gentoo.org"
504 )
505 {
506         fileinto "gentoo.org/docs";
507         stop;
508 }
509
510 if allof (header :contains "From" "bugzilla-daemon@gentoo.org")
511 {
512         # Bugzilla
513
514         # Gentoo: toolchain/gcc-porting
515         if allof (header :regex "To" "(toolchain|gcc-porting)@gentoo\\.org")
516         {
517                 fileinto "gentoo.org/bugs/toolchain";
518                 stop;
519         }
520
521         # Gentoo: games
522         elsif allof (header :contains "To" "games@gentoo.org")
523         {
524                 fileinto "gentoo.org/bugs/games";
525                 stop;
526         }
527
528         # Gentoo: security bugzilla
529         elsif allof (header :contains "To" "security@gentoo.org")
530         {
531                 fileinto "gentoo.org/bugs/hardened";
532                 stop;
533         }
534
535         # Gentoo: bugzilla me
536         elsif allof (header :contains "To" "vapier@gentoo.org")
537         {
538                 fileinto "gentoo.org/bugs/mine";
539                 stop;
540         }
541
542         # Gentoo: arches
543         elsif allof (header :regex "To" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|s390|sh|sparc|x86)@gentoo.org")
544         {
545                 # stable/keyword req
546                 if anyof(header :regex "X-Bugzilla-Keywords" "((KEYWORD|STABLE)REQ|TESTFAILURE)")
547                 {
548                         setflag "\\Seen";
549                         fileinto "gentoo.org/bugs/arches/noise";
550                         stop;
551                 }
552
553                 # Gentoo: my herds
554                 elsif anyof (header :regex "X-Bugzilla-Assigned-To" "(toolchain|security|base-system|games|sandbox)@gentoo.org")
555                 {
556                         setflag "\\Seen";
557                         fileinto "trash";
558                         stop;
559                 }
560         }
561
562         fileinto "gentoo.org/bugs";
563         stop;
564 }
565
566 # Gentoo: arches
567 if anyof (
568         header :regex "To" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|s390|sh|sparc|x86)@gentoo.org",
569         header :regex "Cc" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|s390|sh|sparc|x86)@gentoo.org"
570 )
571 {
572         fileinto "gentoo.org/bugs/arches";
573         stop;
574 }
575
576 # Gentoo: embedded
577 if anyof (
578         header :contains "List-Id" "<gentoo-embedded.gentoo.org>",
579         header :contains "To" "dev-embedded@gentoo.org",
580         header :contains "Cc" "dev-embedded@gentoo.org",
581         header :contains "To" "gentoo-mips@lists.gentoo.org",
582         header :contains "Cc" "gentoo-mips@lists.gentoo.org"
583 )
584 {
585         fileinto "gentoo.org/embedded";
586         stop;
587 }
588
589 # Gentoo: -commits
590 if anyof (header :contains "List-Id" "<gentoo-commits.gentoo.org>")
591 {
592         fileinto "gentoo.org/commits";
593         stop;
594 }
595
596 if anyof (
597         # -project
598         header :contains "List-Id" "<gentoo-project.gentoo.org>",
599         header :contains "List-Id" "<gentoo-soc.gentoo.org>",
600         header :contains "List-Id" "<gentoo-scm.gentoo.org>",
601         header :contains "To" "soc-mentors@gentoo.org",
602         header :contains "Cc" "soc-mentors@gentoo.org",
603         # gentoo-dev
604         header :contains "List-Id" "<gentoo-dev.gentoo.org>",
605         header :contains "List-Id" "<gentoo-dev-announce.gentoo.org>",
606         header :contains "List-Id" "<gentoo-devhelp.gentoo.org>",
607         header :contains "From" "no-reply@socghop.appspotmail.com",
608         # gentoo-nfp
609         header :contains "List-Id" "<gentoo-nfp.gentoo.org>",
610         # gentoo-licenses
611         header :contains "List-Id" "<gentoo-licenses.gentoo.org>",
612         # gentoo-qa
613         header :contains "List-Id" "<gentoo-qa.gentoo.org>"
614 )
615 {
616         fileinto "gentoo.org/dev";
617         stop;
618 }
619
620 # Gentoo: github
621 if anyof (header :contains "List-ID" "<gentoo.gentoo.github.com>")
622 {
623         fileinto "gentoo.org/github";
624         stop;
625 }
626
627 # Gentoo: -core
628 if anyof (header :contains "List-Id" "<gentoo-core.gentoo.org>")
629 {
630         fileinto "gentoo.org/core";
631         stop;
632 }
633
634 # Gentoo: toolchain [not bugs]
635 if allof (header :regex "To" "(toolchain|gcc-porting)@gentoo\\.org")
636 {
637         fileinto "gentoo.org/bugs/toolchain/list";
638         stop;
639 }
640
641 # Gentoo: catalyst
642 if anyof (header :contains "List-Id" "<gentoo-catalyst.gentoo.org>")
643 {
644         fileinto "gentoo.org";
645         stop;
646 }
647
648 # Gentoo: security
649 if anyof (
650         header :contains "To" "security@gentoo.org",
651         header :contains "Cc" "security@gentoo.org",
652         header :contains "To" "gentoo-hardened@lists.gentoo.org",
653         header :contains "Cc" "gentoo-hardened@lists.gentoo.org",
654         header :contains "To" "gentoo-security@lists.gentoo.org",
655         header :contains "Cc" "gentoo-security@lists.gentoo.org"
656 )
657 {
658         fileinto "gentoo.org/hardened";
659         stop;
660 }
661
662 # Gentoo: catchall
663 if anyof (
664         header :contains "To" "vapier@gentoo.org",
665         header :contains "Cc" "vapier@gentoo.org",
666         header :contains "From" "vapier@gentoo.org",
667         # Moderator!
668         header :contains "To" "gentoo-dev-announce+moderators@lists.gentoo.org",
669         header :contains "Cc" "gentoo-dev-announce+moderators@lists.gentoo.org"
670 )
671 {
672         fileinto "gentoo.org";
673         stop;
674 }