You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Don Saklad <ds...@gnu.org> on 2008/09/30 18:57:27 UTC

Identifying headers for users@spamassassin.apache.org

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







.

Re: Identifying headers for users@spamassassin.apache.org

Posted by Matthias Leisi <ma...@leisi.net>.
Don Saklad schrieb:
> How do you setup things so that
> all messages from users@spamassassin.apache.org
> include identifying headers that begin something like
>  Subject: [usersspamassassin]

I use the List-Id: header in order to sort messages into a separate folder:

List-Id: <users.spamassassin.apache.org>


-- Matthias

Re: Identifying headers for users@spamassassin.apache.org

Posted by mouss <mo...@netoyen.net>.
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" "owner-postfix-users@postfix.org" {
          fileinto "List.mail.postfix-users";
          stop;
}

if header :contains "Sender" "owner-postfix-devel@postfix.org" {
          fileinto "List.mail.postfix-dev";
          stop;
}


if header :contains "List-Owner" 
"<ma...@PEACH.EASE.LSOFT.COM>" {
          fileinto "List.mail.spam-l";
          stop;
}


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

#
## Junk handling
#

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