Re: stripping SA headers for reporting? (spamcop, etc.)
Andre Nicholson wrote to users@spamassassin.apache.org: John Owens wrote: I'd like to send as original a message as I can to SpamCop and other places since they don't like munged reports. Currently I'm doing this manually, which is annoying. I note that sa-learn knows how to remove all SA-specific annotations from a message (unwraps MIME, removes headers, etc.). Is that functionality available in any other way? spamassassin -d < MESSAGEFILE > NEWFILE Or to also report it afterward spamassassin -d < MESSAGEFILE > NEWFILE && spamassassin -r < NEWFILE RTFM, folks. :-) SPAMASSASSIN(1): -r, --report Report this message as manually-verified spam. This will submit the mail message read from STDIN to various spam-blocker databases. [...] If the message contains SpamAssassin markup, the markup will be stripped out automatically before submission. This does the same thing as -d before submission. If it doesn't do what you want, then your upstream probably isn't adding SA markup. (i.e., they're wrapping it themselves using MIMEDefang or something). - Ryan -- Ryan Thompson <[EMAIL PROTECTED]> SaskNow Technologies - http://www.sasknow.com 901-1st Avenue North - Saskatoon, SK - S7K 1Y4 Tel: 306-664-3600 Fax: 306-244-7037 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America
Re: stripping SA headers for reporting? (spamcop, etc.)
John Owens wrote: I'd like to send as original a message as I can to SpamCop and other places since they don't like munged reports. Currently I'm doing this manually, which is annoying. I note that sa-learn knows how to remove all SA-specific annotations from a message (unwraps MIME, removes headers, etc.). Is that functionality available in any other way? spamassassin -d < MESSAGEFILE > NEWFILE Or to also report it afterward spamassassin -d < MESSAGEFILE > NEWFILE && spamassassin -r < NEWFILE
Re: stripping SA headers for reporting? (spamcop, etc.)
At 03:32 PM 9/18/2004 +, John Owens wrote: I'd like to send as original a message as I can to SpamCop and other places since they don't like munged reports. Currently I'm doing this manually, which is annoying. I note that sa-learn knows how to remove all SA-specific annotations from a message (unwraps MIME, removes headers, etc.). Is that functionality available in any other way? Yes, it's directly available from the spamassassin command line tool. man spamassassin: -d, --remove-markup Remove SpamAssassin markup (the ``SpamAssassin results'' report, X-Spam-Status headers, etc.) from the mail message. The resulting message, which will be more or less identical to the original, pre-SpamAssassin input, will be output to stdout. (Note: the message will not be exactly identical; some headers will be reformatted due to some features of the Mail::Internet package, but the body text will be.)
stripping SA headers for reporting? (spamcop, etc.)
I report spam to SpamCop among other places. I get mail from several upstream places (where I don't have control of the SA parameters), so when I get spam, it's often wrapped in a variety of different ways (sometimes as a MIME attachment, sometimes with SA results in the headers, etc.). I'd like to send as original a message as I can to SpamCop and other places since they don't like munged reports. Currently I'm doing this manually, which is annoying. I note that sa-learn knows how to remove all SA-specific annotations from a message (unwraps MIME, removes headers, etc.). Is that functionality available in any other way? What I'd like to do is have a spam folder and just call a script that reads each message, scripts it, and then reports each spam. What I don't have is the code that un- SpamAssassins each message. Is that code available anywhere (possibly as a standalone script, say Python or something like that)? JDO