procmail
[Top] [All Lists]

Re: spambouncer: headers and subjet

2003-05-17 17:20:35
On Friday, May 16, 2003, at 02:35 Canada/Mountain, Tony L. Svanstrom wrote:
On Fri, 16 May 2003 the voices made Uwe Schmitt write:

US> Hi I installed spamboucer and have wish:
US> spambouncer sets headers for later filtering
US> as "X-SBClass: Spam", and I'd like to
US> get the scanning result in the subject line like
US> "Subject: [spam] ....."

:0fh
* ^X-SBClass: Spam
* ^Subject:\/.*
        | formail -I "Subject: [SPAM]$MATCH"

Ah.. I read that request like this:

:0h
* ^X-SBClass:\/.*
{ SPAM=$MATCH }

:0fh
* ^X-SBClass:
* ^Subject:\/.*
| formail -I Subject: [$SPAM] $MATCH

Course, I'm not familiar with SpamBouncer, so if the X-header ONLY contains "Spam" then yours works fine. If the header contains anything else (or just Spam), then mine works.

--
...in the long run there's still time to change the road you're on


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