Spam filter training using IMAP
Shane Hathaway
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:
>
> #!/bin/sh
>
> for USER in `ls /home`
> do
> #look for a spam-mail file in $USER's mail directory
> if [ -f /home/$USER/mail/spam-mail ]
> then
> 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
> fi
> done
Cool! I'll try it.
Shane
More information about the PLUG
mailing list