Bob S. said:
Hello SuSE people
Having a problem making Spamassassin learn. Using the command "sa-learn --spam --mbox /home/bob/Mail/spamin This is the mailbox I use to file all the spam in.
After the command I get the reply " 0 messages learned"
That simply means that this time, sa-learn learnt nothing new about the messages in the mbox. If you put some fresh spam in there, you'll likely see a message about how many messages it learned.
Also, once I finally get this working, how/where does Spamassassin put the identified spam mail? I use kmail. Do I need to create a folder in Kmail and tell Spamassassin?
If you look in your .spamassassin directory, you'll see some files. These are the tokens and other data used by the Bayesian spamclassifier to identify spam. They're added to when you run the sa-learn program. I use spamassassin as an external shell program in an Evolution filter. If the program returns 0, the message is good; if it returns anything else, it's spam, and gets moved to the Junk folder. I've not had a false positive (i.e. bona fide mail classified as spam) yet. What I do with missed spam is move it to a "training" local maildir folder and then periodically run "sa-learn --spam --dir /training" or somesuch. If I was organised and stuff, I'd schedule a cron job, or put it in my .bash_profile or something. Festive regards, Peter. -- Peter Whysall || peter.whysall@ntlworld.com The IWETHEY Project : http://z.iwethey.org The Collaborative Media Foundation : http://www.collaborativemedia.org