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