On Mon, 26 May 2003, Andrew J Caines wrote:
> Matthias,
>
> > I want to report spam which doesnt get detected by spamassassin to the razor
> > system. ...But spamassassin adds additional headers to every mail so my
> > question is if I can pipe mails with these extra headers to razor-report or
> > if needs to be the original unchanged mail.
>
> Razor works on hashes of message bodies (See FAQ #2[1]), so as long as
> your SA setup doesn't alter the body there is no problem reporting these
> messages.
As long as it's the body then I should be ok. I call SA from MD. I
insert a customized X-Spam-Score header. The only other odddity that SA
can't remove is the string I prepend to the Subject when the score is >=
10. I can cut that out with sed though. I also strip out the ReSent
lines that are generated when I bounce the message from one of my regular
accounts to my spamtrap that auto-reports mail. A procmail recipe that
does all this looks like
# Report spam to Pyzor
:0 BH
{
:0f
| spamassassin -d \
| sed -e "s/^Subject: \*\*\*SPAM\*\*\*/Subject:/" \
| grep -v "^ReSent-" \
| grep -v "^X-Scanned-By:"
# :0 Wc : /var/lock/pyzor-report.lock
# | /usr/bin/pyzor report
# :0 Wc : /var/lock/razor-report.lock
# | spamassassin -r
# :0:
# test
}
I didn't use formail in my example. Uncomment the lines that suit your
needs.
Justin
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
Razor-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/razor-users