1 # https://thsmi.github.com/sieve-reference/en/
2 # NB: Don't need to manually compile this as getmail will do it automatically.
8 # require "vnd.dovecot.debug";
12 if anyof (header :contains "CC" "vapier@gentoo.org")
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)"
32 header :contains "Content-Type" "text/html;",
33 body :raw :contains ["<html>", "<tbody>"]
36 fileinto "trash/spam";
39 #if anyof (body :raw :regex ["filename=.*\.exe", "filename=.*\.pif", "filename=.*\.scr", "filename=.*\.zip"])
41 # fileinto "trash/spam";
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>"
53 fileinto "misc projects/sfc";
59 #if anyof (header :contains "From" "@chromium.org")
67 header :contains "List-Id" "<users.linux.kernel.org>",
68 header :contains "List-id" "<linux-arch.vger.kernel.org>"
71 fileinto "misc projects/linux";
78 header :contains "List-Id" "<devicetree.vger.kernel.org>",
79 header :contains "List-Id" "<devicetree-compiler.vger.kernel.org>"
82 fileinto "misc projects/linux/embedded";
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",
96 header :contains "List-Id" "<alsa-devel.alsa-project.org>",
98 header :contains "List-Id" "<apcupsd-users.lists.sourceforge.net>",
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>",
107 header :contains "List-Id" "<bug-bash.gnu.org>",
109 header :contains "List-Id" "<bitpim-devel.lists.sourceforge.net>",
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",
115 header :contains "List-Id" "<chrome-notebook-pilot-users.googlegroups.com>",
117 header :contains "List-Id" "<cldr-users.unicode.org>",
119 header :contains "List-Id" "<colinux-users.lists.sourceforge.net>",
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>",
125 header :contains "List-Id" "<bug-cpio.gnu.org>",
127 header :contains "List-Id" "<cracklib-devel.lists.sourceforge.net>",
129 header :contains "To" "dietlibc@fefe.de",
130 header :contains "Cc" "dietlibc@fefe.de",
132 header :contains "List-Id" "<directfb-users.directfb.org>",
133 header :contains "List-Id" "<directfb-dev.directfb.org>",
135 header :contains "List-Id" "<dokuwiki.list-id.freelists.org>",
137 header :contains "List-Id" "<dropbear.ucc.asn.au>",
139 header :contains "Subject" "[Dxr2-devel]",
141 header :contains "List-Id" "<bug-ed.gnu.org>",
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>",
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",
152 header :contains "List-Id" "<genext2fs-devel.lists.sourceforge.net>",
154 header :contains "List-Id" "<bug-gnulib.gnu.org>",
156 header :contains "List-Id" "<gpm.lists.linux.it>",
158 header :contains "List-Id" "<gpsd-dev.nongnu.org>",
160 header :contains "List-Id" "<bug-grep.gnu.org>",
162 header :contains "List-Id" "<bug-gzip.gnu.org>",
164 header :contains "List-Id" "<hal.lists.freedesktop.org>",
166 header :contains "List-Id" "<insight.sourceware.org>",
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>",
172 header :contains "List-Id" "<k3b-user.lists.sourceforge.net>",
174 header :contains "List-Id" "<kbd.lists.altlinux.org>",
176 header :contains "List-Id" "<libquicktime-devel.lists.sourceforge.net>",
178 header :contains "List-Id" "<libtirpc-devel.lists.sourceforge.net>",
180 header :contains "List-Id" "<linux-api.vger.kernel.org>",
182 header :contains "List-Id" "<linux-man.vger.kernel.org>",
184 header :contains "List-Id" "<lirc-list.lists.sourceforge.net>",
186 header :contains "List-Id" "<ltp-list.lists.sourceforge.net>",
187 header :contains "List-Id" "<ltp.lists.linux.it>",
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",
196 header :contains "List-Id" "<metalog-users.lists.sourceforge.net>",
198 header :contains "To" "dvdnav-discuss@mplayerhq.hu",
199 header :contains "Cc" "dvdnav-discuss@mplayerhq.hu",
201 header :contains "List-Id" "<linux-modules.vger.kernel.org>",
203 header :contains "List-Id" "<mpfr.loria.fr>",
205 header :contains "List-Id" "<info-mtools.gnu.org>",
207 header :contains "List-Id" "<mutt-dev.mutt.org>",
209 header :contains "List-Id" "<nano-devel.gnu.org>",
211 header :contains "List-Id" "<nasm-devel.lists.sourceforge.net>",
213 header :contains "List-Id" "<nbd-general.lists.sourceforge.net>",
215 header :contains "List-Id" "<bug-ncurses.gnu.org>",
217 header :contains "List-Id" "<net-tools-devel.lists.sourceforge.net>",
219 header :contains "List-Id" "<nfs.lists.sourceforge.net>",
220 header :contains "List-Id" "<linux-nfs.vger.kernel.org>",
222 header :contains "List-Id" "<ode.ode.org>",
223 header :contains "List-Id" "<ode.q12.org>",
225 header :contains "X-Loop" "austin-group-l@opengroup.org",
227 header :contains "List-Id" "<discuss.lesswatts.org>",
229 header :contains "List-Id" "<procps.freelists.org>",
231 header :contains "List-Id" "<bug-patch.gnu.org>",
233 header :contains "List-Id" "<bug-readline.gnu.org>",
235 header :contains "List-Id" "<reiserfs-devel.vger.kernel.org>",
237 header :contains "List-Id" "<rsync.lists.samba.org>",
239 header :contains "List-Id" "<sdl.libsdl.org>",
240 header :contains "List-Id" "<sdl-libsdl.org>",
242 header :contains "List-Id" "<shadow.pld.org.pl>",
243 header :contains "List-Id" "<pkg-shadow-devel.lists.alioth.debian.org>",
245 header :contains "List-Id" "<sigrok-devel.lists.sourceforge.net>",
247 header :contains "List-Id" "<speex-dev.xiph.org>",
249 header :contains "List-Id" "<sqlite-users.sqlite.org>",
251 header :contains "Sender" "owner-openssl-dev@openssl.org",
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",
257 header :contains "List-Id" "<sudo-workers.sudo.ws>",
259 header :contains "List-Id" "<syslinux.zytor.com>",
261 header :contains "List-Id" "<sysvinit-devel.nongnu.org>",
263 header :contains "List-Id" "<bug-tar.gnu.org>",
265 header :contains "List-Id" "<tz.iana.org>",
267 header :contains "List-Id" "<uclinux-dev.uclinux.org>",
269 header :contains "List-Id" "<linux-hotplug-devel.lists.sourceforge.net>",
271 header :contains "List-Id" "<urjtag-development.lists.sourceforge.net>",
273 header :contains "X-Mailing-List" "util-linux@vger.kernel.org",
275 header :contains "List-Id" "<bug-wget.gnu.org>",
277 header :contains "List-Id" "<yasm-devel.tortall.net>",
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"
284 fileinto "misc projects";
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"
299 fileinto "misc projects/uclibc";
303 # Project: busybox (after uClibc)
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"
312 fileinto "misc projects/busybox";
316 # buildroot (after uClibc)
318 header :contains "List-Id" "<buildroot.busybox.net>",
319 header :contains "To" "buildroot@buildroot.org",
320 header :contains "Cc" "buildroot@buildroot.org"
323 fileinto "misc projects/buildroot";
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"
340 fileinto "misc projects/toolchain";
342 if anyof(body :text :contains "sim/")
351 header :contains "List-Id" "<bug-binutils.gnu.org>",
352 header :contains "List-Post" "<mailto:binutils@sourceware.org>",
354 header :contains "List-Id" "<ccache.lists.samba.org>",
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>",
361 header :contains "List-Post" "<mailto:gcc-patches@gcc.gnu.org>",
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",
367 header :contains "List-Id" "<config-patches.gnu.org>",
369 header :contains "List-Post" "<mailto:newlib@sourceware.org>",
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",
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",
379 header :contains "To" "libunwind-devel@nongnu.org",
380 header :contains "Cc" "libunwind-devel@nongnu.org"
383 fileinto "misc projects/toolchain";
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>"
395 fileinto "misc projects/e";
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"
408 fileinto "misc projects/u-boot";
418 header :contains "List-Id" "<linux-alpha.vger.kernel.org>",
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>",
425 header :contains "List-Id" "<uclinux-dist-devel.blackfin.uclinux.org>",
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",
432 header :contains "List-Id" "linux-mac68k.lists.purplehat.net",
434 header :contains "List-Id" "<parisc-linux.lists.parisc-linux.org>",
435 header :contains "List-Id" "<linux-parisc.vger.kernel.org>",
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>"
443 fileinto "misc projects/archs";
454 header :contains "To" "graphics@gentoo.org",
455 header :contains "Cc" "graphics@gentoo.org"
458 fileinto "gentoo.org/bugs/graphics";
464 header :contains "To" "openrc@gentoo.org",
465 header :contains "Cc" "openrc@gentoo.org"
468 fileinto "gentoo.org/bugs/base-system/openrc";
472 # Gentoo: base-system
474 header :contains "To" "base-system@gentoo.org",
475 header :contains "Cc" "base-system@gentoo.org"
478 fileinto "gentoo.org/bugs/base-system";
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>"
489 fileinto "gentoo.org/bugs/portage";
493 # Gentoo: portage utils
495 header :contains "To" "portage-utils@gentoo.org",
496 header :contains "Cc" "portage-utils@gentoo.org"
499 fileinto "gentoo.org/bugs/portage-utils";
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"
511 fileinto "gentoo.org/docs";
515 if allof (header :contains "From" "bugzilla-daemon@gentoo.org")
519 # Gentoo: toolchain/gcc-porting
520 if allof (header :regex "To" "(toolchain|gcc-porting)@gentoo\\.org")
522 fileinto "gentoo.org/bugs/toolchain";
527 elsif allof (header :contains "To" "games@gentoo.org")
529 fileinto "gentoo.org/bugs/games";
533 # Gentoo: security bugzilla
534 elsif allof (header :contains "To" "security@gentoo.org")
536 fileinto "gentoo.org/bugs/hardened";
540 # Gentoo: bugzilla me
541 elsif allof (header :contains "To" "vapier@gentoo.org")
543 fileinto "gentoo.org/bugs/mine";
548 elsif allof (header :regex "To" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|s390|sh|sparc|x86)@gentoo.org")
551 if anyof(header :regex "X-Bugzilla-Keywords" "((KEYWORD|STABLE)REQ|TESTFAILURE)")
554 fileinto "gentoo.org/bugs/arches/noise";
559 elsif anyof (header :regex "X-Bugzilla-Assigned-To" "(toolchain|security|base-system|games|sandbox)@gentoo.org")
567 fileinto "gentoo.org/bugs";
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"
577 fileinto "gentoo.org/bugs/arches";
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"
590 fileinto "gentoo.org/embedded";
595 if anyof (header :contains "List-Id" "<gentoo-commits.gentoo.org>")
597 fileinto "gentoo.org/commits";
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",
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",
614 header :contains "List-Id" "<gentoo-nfp.gentoo.org>",
616 header :contains "List-Id" "<gentoo-licenses.gentoo.org>",
618 header :contains "List-Id" "<gentoo-qa.gentoo.org>"
621 fileinto "gentoo.org/dev";
626 if anyof (header :contains "List-ID" "<gentoo.gentoo.github.com>")
628 fileinto "gentoo.org/github";
633 if anyof (header :contains "List-Id" "<gentoo-core.gentoo.org>")
635 fileinto "gentoo.org/core";
639 # Gentoo: toolchain [not bugs]
640 if allof (header :regex "To" "(toolchain|gcc-porting)@gentoo\\.org")
642 fileinto "gentoo.org/bugs/toolchain/list";
647 if anyof (header :contains "List-Id" "<gentoo-catalyst.gentoo.org>")
649 fileinto "gentoo.org";
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"
663 fileinto "gentoo.org/hardened";
669 header :contains "To" "vapier@gentoo.org",
670 header :contains "Cc" "vapier@gentoo.org",
671 header :contains "From" "vapier@gentoo.org",
673 header :contains "To" "gentoo-dev-announce+moderators@lists.gentoo.org",
674 header :contains "Cc" "gentoo-dev-announce+moderators@lists.gentoo.org"
677 fileinto "gentoo.org";