]>
Commit | Line | Data |
---|---|---|
318958d6 MF |
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 | # gcc | |
353 | header :contains "List-Post" "<mailto:gcc-patches@gcc.gnu.org>", | |
354 | # glibc | |
355 | header :regex "List-Post" "<mailto:libc-(alpha|help|locales|ports|stable)@sourceware\.org>", | |
356 | header :regex "To" "libc-(alpha|help|locales|ports|stable)@sourceware\.org", | |
357 | header :regex "Cc" "libc-(alpha|help|locales|ports|stable)@sourceware\.org", | |
358 | # gnuconfig | |
359 | header :contains "List-Id" "<config-patches.gnu.org>", | |
360 | # newlib | |
361 | header :contains "List-Post" "<mailto:newlib@sourceware.org>", | |
362 | # qemu | |
363 | header :contains "List-Post" "<mailto:qemu-devel@nongnu.org>", | |
364 | header :contains "To" "qemu-devel@nongnu.org", | |
365 | header :contains "Cc" "qemu-devel@nongnu.org", | |
366 | # sourceware | |
367 | header :contains "List-Post" "<mailto:cgen@sourceware.org>", | |
368 | header :contains "List-Post" "<mailto:crossgcc@sourceware.org>", | |
369 | header :contains "From" "sourceware-bugzilla@sourceware.org", | |
370 | # misc | |
371 | header :contains "To" "libunwind-devel@nongnu.org", | |
372 | header :contains "Cc" "libunwind-devel@nongnu.org" | |
373 | ) | |
374 | { | |
375 | fileinto "misc projects/toolchain"; | |
376 | stop; | |
377 | } | |
378 | ||
379 | ||
380 | # Project: E | |
381 | if anyof ( | |
382 | header :contains "List-Id" "<enlightenment-cvs.lists.sourceforge.net>", | |
383 | header :contains "List-Id" "<enlightenment-devel.lists.sourceforge.net>", | |
384 | header :contains "List-Id" "<evidence-cvs.lists.sourceforge.net>" | |
385 | ) | |
386 | { | |
387 | fileinto "misc projects/e"; | |
388 | stop; | |
389 | } | |
390 | ||
391 | ||
392 | # Project: u-boot | |
393 | if anyof ( | |
394 | header :contains "List-Id" "<u-boot-users.lists.sourceforge.net>", | |
395 | header :contains "List-Id" "<u-boot.lists.denx.de>", | |
396 | header :contains "To" "u-boot@lists.denx.de", | |
397 | header :contains "Cc" "u-boot@lists.denx.de" | |
398 | ) | |
399 | { | |
400 | fileinto "misc projects/u-boot"; | |
401 | stop; | |
402 | } | |
403 | ||
404 | ||
405 | # | |
406 | # Arches | |
407 | # | |
408 | if anyof ( | |
409 | # Alpha | |
410 | header :contains "List-Id" "<linux-alpha.vger.kernel.org>", | |
411 | # ARM | |
412 | header :contains "List-Id" "<boot-architecture.lists.linaro.org>", | |
413 | header :contains "List-Id" "<cross-distro.lists.linaro.org>", | |
414 | header :contains "List-Id" "<armedslack.lists.armedslack.org>", | |
415 | header :contains "List-Id" "<iyonix-support.freelists.org>", | |
416 | # Blackfin | |
417 | header :contains "List-Id" "<uclinux-dist-devel.blackfin.uclinux.org>", | |
418 | # s390 | |
419 | header :contains "X-Mailing-List" "linux-s390@vger.kernel.org", | |
420 | header :contains "List-Id" "<hercules-390.yahoogroups.com>", | |
421 | header :contains "To" "linux-390@vm.marist.edu", | |
422 | header :contains "Cc" "linux-390@vm.marist.edu", | |
423 | # m68k | |
424 | header :contains "List-Id" "linux-mac68k.lists.purplehat.net", | |
425 | # parisc | |
426 | header :contains "List-Id" "<parisc-linux.lists.parisc-linux.org>", | |
427 | header :contains "List-Id" "<linux-parisc.vger.kernel.org>", | |
428 | # SuperH | |
429 | header :contains "List-Id" "<linuxsh-dev.lists.sourceforge.net>", | |
430 | header :contains "List-Id" "<linuxsh-cvs.lists.sourceforge.net>", | |
431 | header :contains "List-Id" "<linuxdc-dev.lists.sourceforge.net>", | |
432 | header :contains "List-Id" "<linux-sh.vger.kernel.org>" | |
433 | ) | |
434 | { | |
435 | fileinto "misc projects/archs"; | |
436 | stop; | |
437 | } | |
438 | ||
439 | ||
440 | # | |
441 | # Gentoo | |
442 | # | |
443 | ||
444 | # Gentoo: graphics | |
445 | if anyof ( | |
446 | header :contains "To" "graphics@gentoo.org", | |
447 | header :contains "Cc" "graphics@gentoo.org" | |
448 | ) | |
449 | { | |
450 | fileinto "gentoo.org/bugs/graphics"; | |
451 | stop; | |
452 | } | |
453 | ||
454 | # Gentoo: openrc | |
455 | if anyof ( | |
456 | header :contains "To" "openrc@gentoo.org", | |
457 | header :contains "Cc" "openrc@gentoo.org" | |
458 | ) | |
459 | { | |
460 | fileinto "gentoo.org/bugs/base-system/openrc"; | |
461 | stop; | |
462 | } | |
463 | ||
464 | # Gentoo: base-system | |
465 | if anyof ( | |
466 | header :contains "To" "base-system@gentoo.org", | |
467 | header :contains "Cc" "base-system@gentoo.org" | |
468 | ) | |
469 | { | |
470 | fileinto "gentoo.org/bugs/base-system"; | |
471 | stop; | |
472 | } | |
473 | ||
474 | # Gentoo: portage | |
475 | if anyof ( | |
476 | header :regex "To" "(dev|tools)-portage@gentoo\\.org", | |
477 | header :regex "Cc" "(dev|tools)-portage@gentoo\\.org", | |
478 | header :contains "List-Id" "<gentoo-portage-dev.gentoo.org>" | |
479 | ) | |
480 | { | |
481 | fileinto "gentoo.org/bugs/portage"; | |
482 | stop; | |
483 | } | |
484 | ||
485 | # Gentoo: portage utils | |
486 | if anyof ( | |
487 | header :contains "To" "portage-utils@gentoo.org", | |
488 | header :contains "Cc" "portage-utils@gentoo.org" | |
489 | ) | |
490 | { | |
491 | fileinto "gentoo.org/bugs/portage-utils"; | |
492 | stop; | |
493 | } | |
494 | ||
495 | # Gentoo: docs team | |
496 | if anyof ( | |
497 | header :contains "To" "docs-team@gentoo.org", | |
498 | header :contains "Cc" "docs-team@gentoo.org", | |
499 | header :contains "To" "gentoo-doc@lists.gentoo.org", | |
500 | header :contains "Cc" "gentoo-doc@lists.gentoo.org" | |
501 | ) | |
502 | { | |
503 | fileinto "gentoo.org/docs"; | |
504 | stop; | |
505 | } | |
506 | ||
507 | if allof (header :contains "From" "bugzilla-daemon@gentoo.org") | |
508 | { | |
509 | # Bugzilla | |
510 | ||
511 | # Gentoo: toolchain/gcc-porting | |
512 | if allof (header :regex "To" "(toolchain|gcc-porting)@gentoo\\.org") | |
513 | { | |
514 | fileinto "gentoo.org/bugs/toolchain"; | |
515 | stop; | |
516 | } | |
517 | ||
518 | # Gentoo: games | |
519 | elsif allof (header :contains "To" "games@gentoo.org") | |
520 | { | |
521 | fileinto "gentoo.org/bugs/games"; | |
522 | stop; | |
523 | } | |
524 | ||
525 | # Gentoo: security bugzilla | |
526 | elsif allof (header :contains "To" "security@gentoo.org") | |
527 | { | |
528 | fileinto "gentoo.org/bugs/hardened"; | |
529 | stop; | |
530 | } | |
531 | ||
532 | # Gentoo: bugzilla me | |
533 | elsif allof (header :contains "To" "vapier@gentoo.org") | |
534 | { | |
535 | fileinto "gentoo.org/bugs/mine"; | |
536 | stop; | |
537 | } | |
538 | ||
539 | # Gentoo: arches | |
540 | elsif allof (header :regex "To" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|s390|sh|sparc|x86)@gentoo.org") | |
541 | { | |
542 | # stable/keyword req | |
543 | if anyof(header :regex "X-Bugzilla-Keywords" "((KEYWORD|STABLE)REQ|TESTFAILURE)") | |
544 | { | |
545 | setflag "\\Seen"; | |
546 | fileinto "gentoo.org/bugs/arches/noise"; | |
547 | stop; | |
548 | } | |
549 | ||
550 | # Gentoo: my herds | |
551 | elsif anyof (header :regex "X-Bugzilla-Assigned-To" "(toolchain|security|base-system|games|sandbox)@gentoo.org") | |
552 | { | |
553 | setflag "\\Seen"; | |
554 | fileinto "trash"; | |
555 | stop; | |
556 | } | |
557 | } | |
558 | ||
559 | fileinto "gentoo.org/bugs"; | |
560 | stop; | |
561 | } | |
562 | ||
563 | # Gentoo: arches | |
564 | if anyof ( | |
565 | header :regex "To" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|s390|sh|sparc|x86)@gentoo.org", | |
566 | header :regex "Cc" "(alpha|amd64|arm|arm64|ia64|hppa|m68k|mips|ppc|ppc64|s390|sh|sparc|x86)@gentoo.org" | |
567 | ) | |
568 | { | |
569 | fileinto "gentoo.org/bugs/arches"; | |
570 | stop; | |
571 | } | |
572 | ||
573 | # Gentoo: embedded | |
574 | if anyof ( | |
575 | header :contains "List-Id" "<gentoo-embedded.gentoo.org>", | |
576 | header :contains "To" "dev-embedded@gentoo.org", | |
577 | header :contains "Cc" "dev-embedded@gentoo.org", | |
578 | header :contains "To" "gentoo-mips@lists.gentoo.org", | |
579 | header :contains "Cc" "gentoo-mips@lists.gentoo.org" | |
580 | ) | |
581 | { | |
582 | fileinto "gentoo.org/embedded"; | |
583 | stop; | |
584 | } | |
585 | ||
586 | # Gentoo: -commits | |
587 | if anyof (header :contains "List-Id" "<gentoo-commits.gentoo.org>") | |
588 | { | |
589 | fileinto "gentoo.org/commits"; | |
590 | stop; | |
591 | } | |
592 | ||
593 | if anyof ( | |
594 | # -project | |
595 | header :contains "List-Id" "<gentoo-project.gentoo.org>", | |
596 | header :contains "List-Id" "<gentoo-soc.gentoo.org>", | |
597 | header :contains "List-Id" "<gentoo-scm.gentoo.org>", | |
598 | header :contains "To" "soc-mentors@gentoo.org", | |
599 | header :contains "Cc" "soc-mentors@gentoo.org", | |
600 | # gentoo-dev | |
601 | header :contains "List-Id" "<gentoo-dev.gentoo.org>", | |
602 | header :contains "List-Id" "<gentoo-dev-announce.gentoo.org>", | |
603 | header :contains "List-Id" "<gentoo-devhelp.gentoo.org>", | |
604 | header :contains "From" "no-reply@socghop.appspotmail.com", | |
605 | # gentoo-licenses | |
606 | header :contains "List-Id" "<gentoo-licenses.gentoo.org>", | |
607 | # gentoo-qa | |
608 | header :contains "List-Id" "<gentoo-qa.gentoo.org>" | |
609 | ) | |
610 | { | |
611 | fileinto "gentoo.org/dev"; | |
612 | stop; | |
613 | } | |
614 | ||
615 | # Gentoo: github | |
616 | if anyof (header :contains "List-ID" "<gentoo.gentoo.github.com>") | |
617 | { | |
618 | fileinto "gentoo.org/github"; | |
619 | stop; | |
620 | } | |
621 | ||
622 | # Gentoo: NFP | |
623 | if anyof (header :contains "List-Id" "<gentoo-nfp.gentoo.org>") | |
624 | { | |
625 | fileinto "gentoo.org/nfp"; | |
626 | stop; | |
627 | } | |
628 | ||
629 | # Gentoo: -core | |
630 | if anyof (header :contains "List-Id" "<gentoo-core.gentoo.org>") | |
631 | { | |
632 | fileinto "gentoo.org/core"; | |
633 | stop; | |
634 | } | |
635 | ||
636 | # Gentoo: toolchain [not bugs] | |
637 | if allof (header :regex "To" "(toolchain|gcc-porting)@gentoo\\.org") | |
638 | { | |
639 | fileinto "gentoo.org/bugs/toolchain/list"; | |
640 | stop; | |
641 | } | |
642 | ||
643 | # Gentoo: catalyst | |
644 | if anyof (header :contains "List-Id" "<gentoo-catalyst.gentoo.org>") | |
645 | { | |
646 | fileinto "gentoo.org"; | |
647 | stop; | |
648 | } | |
649 | ||
650 | # Gentoo: security | |
651 | if anyof ( | |
652 | header :contains "To" "security@gentoo.org", | |
653 | header :contains "Cc" "security@gentoo.org", | |
654 | header :contains "To" "gentoo-hardened@lists.gentoo.org", | |
655 | header :contains "Cc" "gentoo-hardened@lists.gentoo.org", | |
656 | header :contains "To" "gentoo-security@lists.gentoo.org", | |
657 | header :contains "Cc" "gentoo-security@lists.gentoo.org" | |
658 | ) | |
659 | { | |
660 | fileinto "gentoo.org/hardened"; | |
661 | stop; | |
662 | } | |
663 | ||
664 | # Gentoo: catchall | |
665 | if anyof ( | |
666 | header :contains "To" "vapier@gentoo.org", | |
667 | header :contains "Cc" "vapier@gentoo.org", | |
668 | header :contains "From" "vapier@gentoo.org", | |
669 | # Moderator! | |
670 | header :contains "To" "gentoo-dev-announce+moderators@lists.gentoo.org", | |
671 | header :contains "Cc" "gentoo-dev-announce+moderators@lists.gentoo.org" | |
672 | ) | |
673 | { | |
674 | fileinto "gentoo.org"; | |
675 | stop; | |
676 | } |