Since I don't want the stuff appended by SA to be part of the email used to train Bayesian, I have to go through each message (I use PINE for this) and write out the ORIGINAL message to a separate file which I then use for training.
Is there an easier way to do thia? If I had to worry about thousands of messages, that would represent a large chunk of my time, manually writing out each original message.
A better way?
You can pipe it thru 'formail' to nuke the headers that SA added, like so:
cat FILE | formail -I'X-Spam-Checker-Version:' -I'X-Spam-Level:" \ -I'X-Spam-Status:' -ds sa-learn --[s]ham
The '-ds' parameter causes formail to break the file into separate messages and will feed each to the pipe into sa-learn.
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk