require ["fileinto","reject","vacation","imapflags","relational","comparator-i;ascii-numeric","regex","notify"]; if header :matches "X-Spam-Warning" "*" { fileinto "INBOX.SPAM"; } elsif header :matches "X-PerlMx-Virus-Detected" "*" { fileinto "INBOX.SPAM"; } elsif header :contains "Subject" "stupid-mailing-list" { fileinto "INBOX.IGNORE"; } elsif address :contains :domain "From" "aol.com" { fileinto "INBOX.IGNORE"; } else { keep; }