]> git.wh0rd.org - home.git/blob - .config/mail/filters.siv
7e80bc2da300e8b661396dd0b8e86e6c69aa5413
[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 # nano
202 header :contains "List-Id" "<nano-devel.gnu.org>",
203 # nasm
204 header :contains "List-Id" "<nasm-devel.lists.sourceforge.net>",
205 # nbd
206 header :contains "List-Id" "<nbd-general.lists.sourceforge.net>",
207 # ncurses
208 header :contains "List-Id" "<bug-ncurses.gnu.org>",
209 # net-tools
210 header :contains "List-Id" "<net-tools-devel.lists.sourceforge.net>",
211 # NFS
212 header :contains "List-Id" "<nfs.lists.sourceforge.net>",
213 header :contains "List-Id" "<linux-nfs.vger.kernel.org>",
214 # ode
215 header :contains "List-Id" "<ode.ode.org>",
216 header :contains "List-Id" "<ode.q12.org>",
217 # Open Group
218 header :contains "X-Loop" "austin-group-l@opengroup.org",
219 # powertop
220 header :contains "List-Id" "<discuss.lesswatts.org>",
221 # procps
222 header :contains "List-Id" "<procps.freelists.org>",
223 # patch
224 header :contains "List-Id" "<bug-patch.gnu.org>",
225 # readline
226 header :contains "List-Id" "<bug-readline.gnu.org>",
227 # reiserfs
228 header :contains "List-Id" "<reiserfs-devel.vger.kernel.org>",
229 # rsync
230 header :contains "List-Id" "<rsync.lists.samba.org>",
231 # SDL
232 header :contains "List-Id" "<sdl.libsdl.org>",
233 header :contains "List-Id" "<sdl-libsdl.org>",
234 # shadow
235 header :contains "List-Id" "<shadow.pld.org.pl>",
236 header :contains "List-Id" "<pkg-shadow-devel.lists.alioth.debian.org>",
237 # sigrok
238 header :contains "List-Id" "<sigrok-devel.lists.sourceforge.net>",
239 # speex
240 header :contains "List-Id" "<speex-dev.xiph.org>",
241 # sqlite
242 header :contains "List-Id" "<sqlite-users.sqlite.org>",
243 # ssl
244 header :contains "Sender" "owner-openssl-dev@openssl.org",
245 # strace
246 header :contains "List-Id" "<strace-devel.lists.sourceforge.net>",
247 header :contains "To" "strace-devel@lists.sourceforge.net",
248 header :contains "Cc" "strace-devel@lists.sourceforge.net",
249 # sudo
250 header :contains "List-Id" "<sudo-workers.sudo.ws>",
251 # syslinux
252 header :contains "List-Id" "<syslinux.zytor.com>",
253 # sysvinit-devel
254 header :contains "List-Id" "<sysvinit-devel.nongnu.org>",
255 # tar
256 header :contains "List-Id" "<bug-tar.gnu.org>",
257 # timezone
258 header :contains "List-Id" "<tz.iana.org>",
259 # uClinux
260 header :contains "List-Id" "<uclinux-dev.uclinux.org>",
261 # udev
262 header :contains "List-Id" "<linux-hotplug-devel.lists.sourceforge.net>",
263 # urjtag
264 header :contains "List-Id" "<urjtag-development.lists.sourceforge.net>",
265 # util-linux
266 header :contains "X-Mailing-List" "util-linux@vger.kernel.org",
267 # wget
268 header :contains "List-Id" "<bug-wget.gnu.org>",
269 # yasm
270 header :contains "List-Id" "<yasm-devel.tortall.net>",
271 # zlib
272 header :contains "List-Id" "<zlib-devel_madler.net.madler.net>",
273 header :contains "To" "zlib-devel@madler.net",
274 header :contains "Cc" "zlib-devel@madler.net"
275 )
276 {
277 fileinto "misc projects";
278 stop;
279 }
280
281 # Project: uclibc
282 if anyof (
283 header :contains "List-Id" "<uclibc.uclibc.org>",
284 header :contains "List-Id" "<uclibc-cvs.uclibc.org>",
285 header :contains "List-Id" "<uclibc-admins.lists.busybox.net>",
286 header :contains "To" "uclibc@uclibc.org",
287 header :contains "Cc" "uclibc@uclibc.org",
288 header :contains "To" "uclibc-cvs@uclibc.org",
289 header :contains "Cc" "uclibc-cvs@uclibc.org"
290 )
291 {
292 fileinto "misc projects/uclibc";
293 stop;
294 }
295
296 # Project: busybox (after uClibc)
297 if anyof (
298 header :contains "List-Id" "<busybox.mail.busybox.net>",
299 header :contains "List-Id" "<busybox-cvs.busybox.net>",
300 header :contains "List-Id" "<busybox.busybox.net>",
301 header :contains "To" "busybox@busybox.net",
302 header :contains "Cc" "busybox@busybox.net"
303 )
304 {
305 fileinto "misc projects/busybox";
306 stop;
307 }
308
309 # buildroot (after uClibc)
310 if anyof (
311 header :contains "List-Id" "<buildroot.busybox.net>",
312 header :contains "To" "buildroot@buildroot.org",
313 header :contains "Cc" "buildroot@buildroot.org"
314 )
315 {
316 fileinto "misc projects/buildroot";
317 stop;
318 }
319
320
321 #
322 # Toolchain
323 #
324 if anyof (
325 header :contains "List-Id" "<gdb-patches.sourceware.org>",
326 header :contains "List-Id" "<gdb.sourceware.org>",
327 header :contains "To" "gdb@sourceware.org",
328 header :contains "Cc" "gdb@sourceware.org",
329 header :contains "To" "gdb-patches@sourceware.org",
330 header :contains "Cc" "gdb-patches@sourceware.org"
331 )
332 {
333 fileinto "misc projects/toolchain";
334
335 if anyof(body :text :contains "sim/")
336 {
337 setflag "G";
338 }
339 stop;
340 }
341
342 if anyof (
343 # binutils
344 header :contains "List-Id" "<bug-binutils.gnu.org>",
345 header :contains "List-Post" "<mailto:binutils@sourceware.org>",
346 # ccache
347 header :contains "List-Id" "<ccache.lists.samba.org>",
348 # elfutils
349 header :contains "List-Id" "<elfutils-devel.lists.fedorahosted.org>",
350 header :contains "To" "elfutils-devel@lists.fedorahosted.org",
351 header :contains "Cc" "elfutils-devel@lists.fedorahosted.org",
352 header :contains "List-Id" "<elfutils-devel.sourceware.org>",
353 # gcc
354 header :contains "List-Post" "<mailto:gcc-patches@gcc.gnu.org>",
355 # glibc
356 header :regex "List-Post" "<mailto:libc-(alpha|help|locales|ports|stable)@sourceware\.org>",
357 header :regex "To" "libc-(alpha|help|locales|ports|stable)@sourceware\.org",
358 header :regex "Cc" "libc-(alpha|help|locales|ports|stable)@sourceware\.org",
359 # gnuconfig
360 header :contains "List-Id" "<config-patches.gnu.org>",
361 # newlib
362 header :contains "List-Post" "<mailto:newlib@sourceware.org>",
363 # qemu
364 header :contains "List-Post" "<mailto:qemu-devel@nongnu.org>",
365 header :contains "To" "qemu-devel@nongnu.org",
366 header :contains "Cc" "qemu-devel@nongnu.org",
367 # sourceware
368 header :contains "List-Post" "<mailto:cgen@sourceware.org>",
369 header :contains "List-Post" "<mailto:crossgcc@sourceware.org>",
370 header :contains "From" "sourceware-bugzilla@sourceware.org",
371 # misc
372 header :contains "To" "libunwind-devel@nongnu.org",
373 header :contains "Cc" "libunwind-devel@nongnu.org"
374 )
375 {
376 fileinto "misc projects/toolchain";
377 stop;
378 }
379
380
381 # Project: E
382 if anyof (
383 header :contains "List-Id" "<enlightenment-cvs.lists.sourceforge.net>",
384 header :contains "List-Id" "<enlightenment-devel.lists.sourceforge.net>",
385 header :contains "List-Id" "<evidence-cvs.lists.sourceforge.net>"
386 )
387 {
388 fileinto "misc projects/e";
389 stop;
390 }
391
392
393 # Project: u-boot
394 if anyof (
395 header :contains "List-Id" "<u-boot-users.lists.sourceforge.net>",
396 header :contains "List-Id" "<u-boot.lists.denx.de>",
397 header :contains "To" "u-boot@lists.denx.de",
398 header :contains "Cc" "u-boot@lists.denx.de"
399 )
400 {
401 fileinto "misc projects/u-boot";
402 stop;
403 }
404
405
406 #
407 # Arches
408 #
409 if anyof (
410 # Alpha
411 header :contains "List-Id" "<linux-alpha.vger.kernel.org>",
412 # ARM
413 header :contains "List-Id" "<boot-architecture.lists.linaro.org>",
414 header :contains "List-Id" "<cross-distro.lists.linaro.org>",
415 header :contains "List-Id" "<armedslack.lists.armedslack.org>",
416 header :contains "List-Id" "<iyonix-support.freelists.org>",
417 # Blackfin
418 header :contains "List-Id" "<uclinux-dist-devel.blackfin.uclinux.org>",
419 # s390
420 header :contains "X-Mailing-List" "linux-s390@vger.kernel.org",
421 header :contains "List-Id" "<hercules-390.yahoogroups.com>",
422 header :contains "To" "linux-390@vm.marist.edu",
423 header :contains "Cc" "linux-390@vm.marist.edu",
424 # m68k
425 header :contains "List-Id" "linux-mac68k.lists.purplehat.net",
426 # parisc
427 header :contains "List-Id" "<parisc-linux.lists.parisc-linux.org>",
428 header :contains "List-Id" "<linux-parisc.vger.kernel.org>",
429 # SuperH
430 header :contains "List-Id" "<linuxsh-dev.lists.sourceforge.net>",
431 header :contains "List-Id" "<linuxsh-cvs.lists.sourceforge.net>",
432 header :contains "List-Id" "<linuxdc-dev.lists.sourceforge.net>",
433 header :contains "List-Id" "<linux-sh.vger.kernel.org>"
434 )
435 {
436 fileinto "misc projects/archs";
437 stop;
438 }
439
440
441 #
442 # Gentoo
443 #
444
445 # Gentoo: graphics
446 if anyof (
447 header :contains "To" "graphics@gentoo.org",
448 header :contains "Cc" "graphics@gentoo.org"
449 )
450 {
451 fileinto "gentoo.org/bugs/graphics";
452 stop;
453 }
454
455 # Gentoo: openrc
456 if anyof (
457 header :contains "To" "openrc@gentoo.org",
458 header :contains "Cc" "openrc@gentoo.org"
459 )
460 {
461 fileinto "gentoo.org/bugs/base-system/openrc";
462 stop;
463 }
464
465 # Gentoo: base-system
466 if anyof (
467 header :contains "To" "base-system@gentoo.org",
468 header :contains "Cc" "base-system@gentoo.org"
469 )
470 {
471 fileinto "gentoo.org/bugs/base-system";
472 stop;
473 }
474
475 # Gentoo: portage
476 if anyof (
477 header :regex "To" "(dev|tools)-portage@gentoo\\.org",
478 header :regex "Cc" "(dev|tools)-portage@gentoo\\.org",
479 header :contains "List-Id" "<gentoo-portage-dev.gentoo.org>"
480 )
481 {
482 fileinto "gentoo.org/bugs/portage";
483 stop;
484 }
485
486 # Gentoo: portage utils
487 if anyof (
488 header :contains "To" "portage-utils@gentoo.org",
489 header :contains "Cc" "portage-utils@gentoo.org"
490 )
491 {
492 fileinto "gentoo.org/bugs/portage-utils";
493 stop;
494 }
495
496 # Gentoo: docs team
497 if anyof (
498 header :contains "To" "docs-team@gentoo.org",
499 header :contains "Cc" "docs-team@gentoo.org",
500 header :contains "To" "gentoo-doc@lists.gentoo.org",
501 header :contains "Cc" "gentoo-doc@lists.gentoo.org"
502 )
503 {
504 fileinto "gentoo.org/docs";
505 stop;
506 }
507
508 if allof (header :contains "From" "bugzilla-daemon@gentoo.org")
509 {
510 # Bugzilla
511
512 # Gentoo: toolchain/gcc-porting
513 if allof (header :regex "To" "(toolchain|gcc-porting)@gentoo\\.org")
514 {
515 fileinto "gentoo.org/bugs/toolchain";
516 stop;
517 }
518
519 # Gentoo: games
520 elsif allof (header :contains "To" "games@gentoo.org")
521 {
522 fileinto "gentoo.org/bugs/games";
523 stop;
524 }
525
526 # Gentoo: security bugzilla
527 elsif allof (header :contains "To" "security@gentoo.org")
528 {
529 fileinto "gentoo.org/bugs/hardened";
530 stop;
531 }
532
533 # Gentoo: bugzilla me
534 elsif allof (header :contains "To" "vapier@gentoo.org")
535 {
536 fileinto "gentoo.org/bugs/mine";
537 stop;
538 }
539
540 # Gentoo: arches
541 elsif allof (header :regex "To" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|s390|sh|sparc|x86)@gentoo.org")
542 {
543 # stable/keyword req
544 if anyof(header :regex "X-Bugzilla-Keywords" "((KEYWORD|STABLE)REQ|TESTFAILURE)")
545 {
546 setflag "\\Seen";
547 fileinto "gentoo.org/bugs/arches/noise";
548 stop;
549 }
550
551 # Gentoo: my herds
552 elsif anyof (header :regex "X-Bugzilla-Assigned-To" "(toolchain|security|base-system|games|sandbox)@gentoo.org")
553 {
554 setflag "\\Seen";
555 fileinto "trash";
556 stop;
557 }
558 }
559
560 fileinto "gentoo.org/bugs";
561 stop;
562 }
563
564 # Gentoo: arches
565 if anyof (
566 header :regex "To" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|s390|sh|sparc|x86)@gentoo.org",
567 header :regex "Cc" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|s390|sh|sparc|x86)@gentoo.org"
568 )
569 {
570 fileinto "gentoo.org/bugs/arches";
571 stop;
572 }
573
574 # Gentoo: embedded
575 if anyof (
576 header :contains "List-Id" "<gentoo-embedded.gentoo.org>",
577 header :contains "To" "dev-embedded@gentoo.org",
578 header :contains "Cc" "dev-embedded@gentoo.org",
579 header :contains "To" "gentoo-mips@lists.gentoo.org",
580 header :contains "Cc" "gentoo-mips@lists.gentoo.org"
581 )
582 {
583 fileinto "gentoo.org/embedded";
584 stop;
585 }
586
587 # Gentoo: -commits
588 if anyof (header :contains "List-Id" "<gentoo-commits.gentoo.org>")
589 {
590 fileinto "gentoo.org/commits";
591 stop;
592 }
593
594 if anyof (
595 # -project
596 header :contains "List-Id" "<gentoo-project.gentoo.org>",
597 header :contains "List-Id" "<gentoo-soc.gentoo.org>",
598 header :contains "List-Id" "<gentoo-scm.gentoo.org>",
599 header :contains "To" "soc-mentors@gentoo.org",
600 header :contains "Cc" "soc-mentors@gentoo.org",
601 # gentoo-dev
602 header :contains "List-Id" "<gentoo-dev.gentoo.org>",
603 header :contains "List-Id" "<gentoo-dev-announce.gentoo.org>",
604 header :contains "List-Id" "<gentoo-devhelp.gentoo.org>",
605 header :contains "From" "no-reply@socghop.appspotmail.com",
606 # gentoo-licenses
607 header :contains "List-Id" "<gentoo-licenses.gentoo.org>",
608 # gentoo-qa
609 header :contains "List-Id" "<gentoo-qa.gentoo.org>"
610 )
611 {
612 fileinto "gentoo.org/dev";
613 stop;
614 }
615
616 # Gentoo: github
617 if anyof (header :contains "List-ID" "<gentoo.gentoo.github.com>")
618 {
619 fileinto "gentoo.org/github";
620 stop;
621 }
622
623 # Gentoo: NFP
624 if anyof (header :contains "List-Id" "<gentoo-nfp.gentoo.org>")
625 {
626 fileinto "gentoo.org/nfp";
627 stop;
628 }
629
630 # Gentoo: -core
631 if anyof (header :contains "List-Id" "<gentoo-core.gentoo.org>")
632 {
633 fileinto "gentoo.org/core";
634 stop;
635 }
636
637 # Gentoo: toolchain [not bugs]
638 if allof (header :regex "To" "(toolchain|gcc-porting)@gentoo\\.org")
639 {
640 fileinto "gentoo.org/bugs/toolchain/list";
641 stop;
642 }
643
644 # Gentoo: catalyst
645 if anyof (header :contains "List-Id" "<gentoo-catalyst.gentoo.org>")
646 {
647 fileinto "gentoo.org";
648 stop;
649 }
650
651 # Gentoo: security
652 if anyof (
653 header :contains "To" "security@gentoo.org",
654 header :contains "Cc" "security@gentoo.org",
655 header :contains "To" "gentoo-hardened@lists.gentoo.org",
656 header :contains "Cc" "gentoo-hardened@lists.gentoo.org",
657 header :contains "To" "gentoo-security@lists.gentoo.org",
658 header :contains "Cc" "gentoo-security@lists.gentoo.org"
659 )
660 {
661 fileinto "gentoo.org/hardened";
662 stop;
663 }
664
665 # Gentoo: catchall
666 if anyof (
667 header :contains "To" "vapier@gentoo.org",
668 header :contains "Cc" "vapier@gentoo.org",
669 header :contains "From" "vapier@gentoo.org",
670 # Moderator!
671 header :contains "To" "gentoo-dev-announce+moderators@lists.gentoo.org",
672 header :contains "Cc" "gentoo-dev-announce+moderators@lists.gentoo.org"
673 )
674 {
675 fileinto "gentoo.org";
676 stop;
677 }