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