On 19-May-2009, at 06:45, Jeff Mincy wrote:
You can use formail to remove headers. It is way faster than
spamassassin -d.
The only trick is listing all of the headers that can be added by
SpamAssassin.
formail -b -t -I X-Spam-Status: -I X-Spam-Flag: -I X-Spam-Checker-
Version: -I X-Spam-Rbl: -I X-Spam-Pyzor: -I X-Spam-DCC: -I X-Spam-
Level: -I X-Spam-Bayes: -I X-Spam-Relay: -I X-Spam-Report: -I X-Spam-
AWL: -I X-Spam-Karma: -I X-Spam-ASN: -I X-Spam-CRM114: -I X-Spam-
Relay-Country: < msg
That's not enough, you have to remove the spam tagging from the body
of the message.
Why not use Report-safe and then just extract the mime attachment
(which contains the entire message, headers and all) and save that as
the message. Should be lots faster than futzing about trying to
'clean' up after SA.
--
Is this the light of a new day dawning? A future bright that you
can walk in? No, it's just another Monday Morning, do it all
over again!