> Rob, you have to feed sa-learn two different bunches of mail.
> One known spam and the other known ham.  You have to continually
> train it with missed spam/ham.
>
> I do this by having users create two separate maildirs in their Mail
> directory, one named NotSpam and the other named MissedSpam.
>
> Then I run the following script nightly via cron.  I had to hack it
> a bit because the original was for mbox, not maildir
>
> #!/usr/bin/perl

Nice script. I would love to try it out, but what I do is run it against my 
mailboxes, and sa-learn skips messages it has sent.

How could I modify it to replace my poorly written script?

echo "SpamPile"
sa-learn --spam ~/.Mail/SpamPile/cur/
echo "inbox"
sa-learn --ham ~/.Mail/inbox/cur/
echo "Ads"
sa-learn --ham ~/.Mail/Ads/cur/
echo "VFB'
sa-learn --ham ~/.Mail/VFB/cur/

-- 

Linux Desktop user since 2000,
Home networker since shortly after.

Linux User #183693
http://counter.li.org/

Reply via email to