procmail
[Top] [All Lists]

Re: Filtering spam

2002-03-06 09:18:29
On 2002.03.06 12:56 Odhiambo G. Washington wrote:
This is probably trivial but I am unable to get it to work.
I have mail filters running alongside my MTA and among other things, it
detects
spam but all it does is add a header to identify the mail as spam.
I get, invariably, headers like

X-Spam: [SPAM] - Products - FREE quote
X-Spam: [SPAM] - Scams - BUSINESS
X-Spam: [SPAM] - Scams - DOLLARS
X-Spam: [SPAM] - Mass Emailer -            bfh
X-Spam: [SPAM] - Sex - sexual performance


How do I filter mail based on this header?

I have tried

:0
^X-Spam:*\[SPAM\]
SPAM

I do something similar and it works.
How about the second line in the recipe, try this:

* ^X-Spam:.*\[SPAM\]



I think maybe you missed the "*" in that line too.



--
Andrew
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>