Here's a cool formail trick for ya.On Sat, Nov 02, 2002 at 10:04:49PM +0100, Jan Korger wrote:BTW: Is there a simple command stripping the SA results from a mail as done by 'spamassassin -r'. I want to reprocess my false positives/negatives on a regular basis to see whether changed rules will better SA. I reckon it's not a good idea to process them with the results still in it.spamassassin -d ...
$ formail -s spamassassin -d < mailbox-to-check > clean-mailbox
This will make the mailbox file 'clean-mailbox' a clean, un-spamassassin-tagged mail folder. I use this to create a clean junkmail corpus for testing.
But IIRC, spamc will strip all existing spamassassin tags from your mail (at least when it's in the headers, I'm not sure about the body tags). So, to quickly reprocess everything, just do:
$ formail -s spamc -f < mailbox-to-check > rechecked-mail
This should put all the mail in rechecked-mail tagged with the newest spamassassin scores. This is much faster, since spamc has much lower overhead per instance than spamassassin, and this formail command will start a new process for each message.
Hope this helps,
~Jonathan
NOTE: If spamc doesn't remove body tags, then you'll have to run both commands.
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk