Don Saklad wrote:
How do you setup things so that
all messages from users@spamassassin.apache.org
include identifying headers that begin something like
 Subject: [usersspamassassin]


don't play with the subject. the subject is set by the sender for the recipient to see what the message is about. it is not set to help the MUA classify the message. use headers instead. here is a sieve example:

####################"
require "fileinto";

#......
#......

#amavisd-new
if header :contains "List-Id" "<amavis-user.lists.sourceforge.net>" {
         fileinto "List.mail.amavis";
         stop;
}


#spamassassin
if header :contains "List-Id" "<users.spamassassin.apache.org>" {
         fileinto "List.mail.sa-users";
         stop;
}

if header :contains "List-Id" "<dev.spamassassin.apache.org>" {
         fileinto "List.mail.sa-dev";
         stop;
}

if header :contains "List-Id" "<sare-users.maddoc.net>" {
         fileinto "List.mail.sare";
         stop;
}


# some lists don't have a List-Id:

#postfix
if header :contains "Sender" "[EMAIL PROTECTED]" {
         fileinto "List.mail.postfix-users";
         stop;
}

if header :contains "Sender" "[EMAIL PROTECTED]" {
         fileinto "List.mail.postfix-dev";
         stop;
}


if header :contains "List-Owner" "<mailto:[EMAIL PROTECTED]>" {
         fileinto "List.mail.spam-l";
         stop;
}


#......
#......

#
## Junk handling
#

#move spam to Junk folder
if header :contains "X-Spam-Flag" "YES" {
        fileinto "Junk";
        stop;
}

Reply via email to