Tech Tip
Different people have different ways of training Spamassassin's
Bayesian filter. One of the easiest is to use Maildir mailboxes, and
simply move any spam you find in your inbox to your spambox and vice
versa. Then do this:
find $SPAMBOX | xargs grep -l 'X-Spam-Status: No' | \
xargs sa-learn --file --spam --showdots
find $INBOX | xargs grep -l 'X-Spam-Status: Yes' | \
xargs sa-learn --file --ham --showdots
That will re-train Spamassassin on any misclassified messages, without
interrupting normal training.
If you want to purge your spam mailbox of old stuff automatically, you
can use find for that, too:
find $SPAMBOX/cur -mtime +2 | xargs rm -f
HTH :)
--
Bharathi S