procmail
[Top] [All Lists]

Re: [SAtalk] help with procmail script

2003-08-18 13:26:55
In <20030818192403(_dot_)GD34335(_at_)ipartner(_dot_)net>, Scott Wiersdorf 
<scott(_at_)perlcode(_dot_)org> writes:
On Mon, Aug 18, 2003 at 12:47:00PM -0500, Chris Barnes wrote:
My Question:
What would the procmail script look like that would look at the subject
line and strip out the *****SPAM***** if it exists?  My idea is to put
this into the /etc/procmailrc file (which currently looks like:

Something like this might help:

:0
* ^Subject: \*\*\*\*\*SPAM\*\*\*\*\*\/.*
{
    :0fhw
    |formail -I"Subject:${MATCH}"
}

Or shorter

:0 fhw
* ^Subject: \*\*\*\*\*SPAM\*\*\*\*\*\/.*
|formail -I"Subject:${MATCH}"

I want to completely ignore the SA results from my ISP.  Running SA on
my own box already replaces the scores and any SA headers that might get
added.  But I still have the problem of that pesky mugged subject line.

The best way to strip ALL SpamAssassin headers is to use the SpamAssassin 
function for that:

:0 fhw
* ^X-Spam-
| spamassassin --remove-markup

-- 
Klaus Johannes Rusch
KlausRusch(_at_)atmedia(_dot_)net
http://www.atmedia.net/KlausRusch/

_______________________________________________
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>