Several people have asked about how to tell if sa-learn is learning, or
not, and I have the same question (which does not seem to have been
definitively answered in this list). 

Here is my setup, which appears to be similar to that of others. I
manually put email which I declare to be spam, but which is not so
declared by spamassassin, into a folder called Missed-Spam. I then run
the following command:
sa-learn --spam --mbox
~/evolution/local/Inbox/subfolders/Missed-Spam/mbox

I then get a message like "Learned from 0 message(s) (12 message(s)
examined)". If I add the -D option, I also get messages such as:

debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting
PATH
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/home/spa/bin', keeping.
debug: Final PATH set to:
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/spa/bin
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/mail/spamassassin" for site rules dir
debug: using "/home/spa/.spamassassin/user_prefs" for user prefs file
debug: bayes: DB_File module not installed, cannot use Bayes
debug: Score set 0 chosen.
debug: Initialising learner
debug: Initialising learner
debug: Syncing Bayes journal and expiring old tokens...
debug: bayes: DB_File module not installed, cannot use Bayes
debug: Syncing complete.
debug: Learning Spam
debug: uri tests: Done uriRE
debug: bayes: DB_File module not installed, cannot use Bayes

Some questions:
1 - What does "Learned from 0 message(s)" mean? My interpretation is
that spamassassin already classified these messages as spam, so it did
not alter its rules. But, I told it the messages are spam, so why didn't
it learn anything? By the way, I believe I got this message the very
first time I ran sa-learn on that mailbox, so I do not think that the
problem (if it is one) occurs because I am running sa-learn twice on the
same messages.
2 - What does "DB_File module not installed, cannot use Bayes" mean? I
presume I failed to install something. Here is what I have installed (on
my Red Hat 9 Linux system):
rpm -qa|grep spam tells me that I have installed
spamassassin-2.60-1
spamassassin-tools-2.60-1
Is something missing? If so, what, and where do I get it, and, also, how
do I install it?

A general comment: sure would be nice if there were a FAQ for newbies
(like me) which would guide us through the installation/operation of
spamassassin.

Thanks for any help.

Steve


-- 
Steven P. Auerbach            [EMAIL PROTECTED]
SAIC, MS C/4                  858-826-6493 (office)
10260 Campus Pt. Drive        619-723-1270 (cell/page)    
San Diego, CA 92121-1522      858-826-6587 (fax)



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to