require ["reject", "fileinto", "relational"]; #if address :is "To" "test@roese.nl" { # fileinto "INBOX.testfolder"; # stop; #} #if address :is "From" "sr@denx.de" { # fileinto "INBOX.testfolder2"; # stop; #} #if address :is "Return-Path" "" { # fileinto "INBOX.Lists.linux-kernel"; # stop; #} ############################################ # Root stuff... ## Move spam to spam folder ## removed for now, since SPAM was not detected correctly from mnet (sr@denx.de), 2008-07-04 #if anyof(header :is "X-DSPAM-Result" "Spam", # header :is "X-Spam-Flag" "YES") { # fileinto "INBOX.SPAM"; # stop; #} if header :is "Return-Path" "" { fileinto "INBOX.root"; stop; } if header :is "To" "fritz@roese.nl" { fileinto "INBOX.FritzBox"; stop; } ################################################## # DENX stuff... if header :is "Return-Path" "" { fileinto "INBOX.Denx"; stop; } ################################################### # Mailing lists... if anyof(header :contains "List-Id" "", header :contains "List-Id" "") { fileinto "INBOX.Lists.U-Boot"; stop; } if anyof(header :contains "Return-Path" "linuxppc-dev", header :contains "Return-Path" "linuxppc-embedded") { fileinto "INBOX.Lists.linuxppc-dev"; stop; } #if header :contains "Return-Path" "linuxppc-embedded" { # fileinto "INBOX.Lists.linuxppc-embedded"; # stop; #} if header :contains "Return-Path" "devicetree-discuss" { fileinto "INBOX.Lists.devicetree-discuss"; stop; } if header :contains "Return-Path" "uclinux-dev" { fileinto "INBOX.Lists.uClinux-dev"; stop; } if header :is "List-ID" "Linux MTD discussion mailing list " { fileinto "INBOX.Lists.linux-mtd"; stop; } if header :is "List-ID" "Linux MTD CVS commit list " { fileinto "INBOX.Lists.linux-mtd-cvs"; stop; } if header :is "List-ID" "" { fileinto "INBOX.Lists.Skigeek"; stop; } if header :is "Return-Path" "" { fileinto "INBOX.Lists.jffs-dev"; stop; } if header :contains "List-Id" "" { fileinto "INBOX.Lists.linux-spi-devel"; stop; } if header :contains "Return-Path" "linux-mips" { fileinto "INBOX.Lists.linux-mips"; stop; } if header :is "To" "git-commits@linux-mips.org" { fileinto "INBOX.Lists.linux-mips-git"; stop; } if anyof(header :contains "Return-Path" "linux-arm-kernel", header :contains "Return-Path" "") { fileinto "INBOX.Lists.linux-arm-kernel"; stop; } if header :contains "Return-Path" "linux-arm-toolchain" { fileinto "INBOX.Lists.linux-arm-toolchain"; stop; } if anyof(header :contains "List-Id" "Linux OMAP Open Source Mailing List Archive", header :is "Return-Path" "") { fileinto "INBOX.Lists.linux-omap"; stop; } if header :is "List-ID" "Dovecot Mailing List " { fileinto "INBOX.Lists.dovecot"; stop; } if header :contains "Return-Path" "" { fileinto "INBOX.Lists.RTnet"; stop; } if anyof(header :contains "List-Id" "RTAI discussion ", header :contains "List-Id" "", header :contains "List-Id" "") { fileinto "INBOX.Lists.RTAI"; stop; } if anyof(header :contains "Return-Path" "", header :contains "Return-Path" "") { fileinto "INBOX.Lists.YAFFS"; stop; } if header :contains "List-Id" "CE Linux Developers List " { fileinto "INBOX.Lists.celinux-dev"; stop; } if header :contains "List-Id" "Open test lab mailing list " { fileinto "INBOX.Lists.celinux-opentestlab"; stop; } if header :contains "Return-Path" "" { fileinto "INBOX.Lists.elinos-users"; stop; } if header :contains "Return-Path" "" { fileinto "INBOX.Lists.linux-c-programming"; stop; } if header :contains "List-Id" "lm-sensors discussion list " { fileinto "INBOX.Lists.lm-sensors"; stop; } if header :contains "List-Id" "linux i2c discussion list " { fileinto "INBOX.Lists.lm-sensors-i2c"; stop; } if header :contains "List-Id" "For discussion about KDE PIM applications " { fileinto "INBOX.Lists.kdepim-users"; stop; } if anyof(header :contains "To" "ecos-devel", header :contains "Return-Path" "ecos-devel") { fileinto "INBOX.Lists.ecos-devel"; stop; } if header :contains "Return-Path" "xenomai-" { fileinto "INBOX.Lists.Xenomai"; stop; } if anyof(header :contains "Return-Path" "", header :contains "Return-Path" "", header :contains "List-Id" "OSADL Initial Mailinglist ") { fileinto "INBOX.Lists.OSADL"; stop; } if anyof(header :contains "List-Id" "", header :contains "List-Id" "") { fileinto "INBOX.Lists.socketcan"; stop; } if header :contains "Return-Path" "" { fileinto "INBOX.Lists.linux-serial"; stop; } if header :contains "Return-Path" "" { fileinto "INBOX.Lists.linux-crypto"; stop; } if header :contains "Return-Path" "" { fileinto "INBOX.Lists.linux-pci"; stop; } if header :contains "Return-Path" "" { fileinto "INBOX.Lists.linux-embedded"; stop; } if header :contains "Sender" "rtc-linux@googlegroups.com" { fileinto "INBOX.Lists.rtc-linux"; stop; } if header :contains "Sender" "kvm-ppc-devel-bounces@lists.sourceforge.net" { fileinto "INBOX.Lists.kvm-ppc-devel"; stop; } if header :contains "" "" { fileinto "INBOX.Lists."; stop; } if header :contains "Delivered-To" "mailing list parch@power.org" { fileinto "INBOX.Lists.power-org"; stop; } if anyof(header :contains "List-Post" "", header :contains "List-Post" "") { fileinto "INBOX.Lists.openmoko-devel"; stop; } if header :contains "Return-Path" "" { fileinto "INBOX.Lists.ELDK"; stop; } ################################################################## # Private stuff... if anyof(header :contains "To" "", header :contains "Mailing-List" "list GeorgeRRMartin@yahoogroups.com", header :contains "Mailing-List" "list GeorgeRRMartin@yahoogroups.com; contact GeorgeRRMartin-owner@yahoogroups.com", header :contains "Mailing-List" "list GeorgeRRMartin@yahoogroups.com; contact GeorgeRRMartin-owner@yahoogroups.com") { fileinto "INBOX.Lists.George-R-R-Martin"; stop; } ############################################################### # Newsletter... if header :contains "Return-Path" "" { fileinto "INBOX.Newsletter.AMCC"; stop; } if header :contains "Return-Path" "" { fileinto "INBOX.Newsletter.IBM"; stop; } if header :contains "Return-Path" "" { fileinto "INBOX.Newsletter.Toms-Hardware-Guide"; stop; } if header :contains "Return-Path" "" { fileinto "INBOX.eBay"; stop; } ################################################################ # big lists with multiple subscription here: # git, lkml etc. at last please if header :contains "Return-Path" "" { fileinto "INBOX.Lists.linux-raid"; stop; } if header :contains "Return-Path" "" { fileinto "INBOX.Lists.git"; stop; } if anyof(header :is "List-ID" "", header :is "List-ID" "") { fileinto "INBOX.Lists.linux-usb-devel"; stop; } #if header :is "List-ID" "" { # fileinto "INBOX.Lists.linux-usb-devel"; # stop; #} if header :contains "Return-Path" "" { fileinto "INBOX.Lists.netdev"; stop; } if header :contains "Return-Path" "" { fileinto "INBOX.Lists.linux-ide"; stop; } if header :is "List-ID" "" { fileinto "INBOX.Lists.linux-kernel"; stop; }