You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Dave Warren <da...@hireahit.com> on 2016/08/01 03:53:59 UTC

Re: false possitive

On 2016-07-31 13:27, Benny Pedersen wrote:
> # rule:[h.reindl maillist]
> if allof (header :contains "from" "h.reindl@thelounge.net", header 
> :contains "to" "users@spamassassin.apache.org")
> {
>     setflag "\\Seen";
>     stop;
> } 

That seems poorly written as it relies upon the To field while the list 
may also receive CC/BCC'd messages, and doesn't handle all possible 
instances in the From field. Also, I'd remove "stop" as I still want 
this delivered into the spamassassin folder by a later rule. This seems 
to work better:

if allof (anyof (header :contains "from" "h.reindl@thelounge.net",header 
:contains "from" "me@junc.eu"), header :is "List-Id" 
"<users.spamassassin.apache.org>")
{
     setflag "\\Seen";
}

-- 
Dave Warren
http://www.hireahit.com/
http://ca.linkedin.com/in/davejwarren