Jeff Ramsey wrote:
Per the advice of Loren, I have started my bayes db over. And so far so
good. SA is working like I wanted it to. I have another question about
my learnspam script. Here is the script:

---------------- START SCRIPT --------------------

#!/bin/sh
# learnspam v0.34

HAMBOX=~/evolution/local/HamLearn/mbox
SPAMBOX=~/evolution/local/SpamLearn/mbox

[EMAIL PROTECTED]
TMPHDIR=~/tmp/ham
TMPSDIR=~/tmp/spam
VERBOSE=1


echo Synchronizing $HAMBOX and $SPAMBOX to $SERVER rsync --partial --progress -z -e ssh $HAMBOX $SERVER:$TMPHDIR rsync --partial --progress -z -e ssh $SPAMBOX $SERVER:$TMPSDIR

ssh $SERVER "
        echo ; echo 'Learning ham...' ; echo ;
        sa-learn --ham --showdots --mbox $TMPHDIR ;
        echo 'Unlearning bad ham...' ; echo ;
        sa-learn --ham --forget --showdots --mbox $TMPSDIR ;

this will be your problem, you've got --ham and --forget pointing at your temp spam directory, I'm betting the --forget argument is ignored and all your spam gets learnt as ham.


        echo 'Learning spam...' ; echo ;
        sa-learn --spam --showdots --mbox $TMPSDIR ;
        echo 'Removing spam senders from AWL...' ; echo ;
        spamassassin -R --mbox $TMPSDIR"
----------------------------- END SCRIPT --------------------------

I run this script via a cron event a couple of times per day, and I move
ham to the ham mbox and spam to the spam mbox via Novell Evolution.

Do I have the sa-learn --forget line correct? Do I need it there at all?
I placed it there because I wanted to make sure that all the junkmail
not getting marked spam was not only being learned as spam, but
unlearned as ham, just in case it was auto-learned as ham.



--
Robert Brooks,           Network Manager,          Cable & Wireless UK
<[EMAIL PROTECTED]> http://hyperlink-interactive.co.uk/
Tel: +44 (0)20 7339 8600                      Fax: +44 (0)20 7339 8601
-  Help Microsoft stamp out piracy.  Give Linux to a friend today!   -

Reply via email to