If you use Maildir mailboxes, in which each mailbox is a directory and not a file, there's an easy way to train SpamAssassin's Bayesian filter on your spam messages. First, save all spam messages to a folder called spam, from your mailer. Then run this script: #!/bin/sh SPAMBOX=$HOME/Maildir/spam mv $SPAMBOX/new/* $SPAMBOX/cur &> /dev/null || exit 0 ls $SPAMBOX/cur/* | xargs sa-learn --file --spam --showdots rm $HOME/Maildir/spam/cur/* # end script This should work from a cron job, because newly saved Maildir messages are placed in the new subdirectory. The exit 0 ends the script if there is no spam to be examined. Upcoming Events _________________________________________________________________ To remove yourself from this list, see www.ssc.com/mailing-lists: http://www.ssc.com/mailing-lists. _________________________________________________________________ ________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today!
Why not use this? sa-learn --spam --dir ~/Mail/.spam.directory/missed/* sa-learn --ham --dir ~/Mail/.spam.directory/non/* -- SuSE Linux 8.2 (i586) Linux 2.4.20-4GB-athlon
participants (2)
-
Carl William Spitzer IV
-
Jonathan Lim