Spam filter training using IMAP
shane at hathawaymix.org
Wed Aug 2 19:34:08 MDT 2006
Doran L. Barton wrote:
> Here's the nightly script we wrote to do this:
> for USER in `ls /home`
> #look for a spam-mail file in $USER's mail directory
> if [ -f /home/$USER/mail/spam-mail ]
> echo "Checking spam for $USER ..."
> su $USER -c "sa-learn --spam --mbox /home/$USER/mail/spam-mail"
> cp /dev/null /home/$USER/mail/spam-mail
Cool! I'll try it.
More information about the PLUG