From: Michael Monnerie <michael.monne...@is.it-management.at>
   Date: Tue, 19 May 2009 09:34:53 +0200
   
   On Sonntag 17 Mai 2009 Michael Monnerie wrote:
   > Why is it so extremely
   > slow and CPU consuming just to remove any existing markups?
   
   There really seems to be no other way than calling "spamassassin -d" to 
   remove existing markups. I guess I will create an account where a script 
   takes all messages from folder X, removes markup, and stores to Y. Like 
   this, I don't mind too much how long it takes. It's still a PITA that 
   there's no quick "spamc" like way to remove markups.
   
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

-jeff

Reply via email to