On Sunday 21 December 2003 20:36, Bob S. wrote:
On Monday 22 December 2003 12:05 am, John Andersen wrote:
On Saturday 20 December 2003 22:13, Bob S. wrote:
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"
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?
Bob S
Typically I think most folks install sa system wide, and then let each user decide what to do with it. So you would typically let Kmail filter on the headers, usually by checking for the number of asterisks on the spam-status header.
Thanks for replying so rapidly John. But, you have lost me. Filter on the headers by checking the asteriks? How does one know that? An output from some command to Spamassassin?
As for the learn, are you sure its a mbox format? Looks more like maildir to me.
OK .....If I do a --dir command I get a reply that it learned from one message. I have over 300 spam mails in the "spamin" directory.
Ok, here's the headers from your Mailing list posting (only the ones of intrest: (In kmail, right click a message and choose Show Source...) X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on pen.homeip.net X-Spam-Level: X-Spam-Status: No, hits=-4.2 required=3.9 tests=AWL,BAYES_00 autolearn=ham version=2.61 ------------- See that header called X-Spam-Level: ? That will have asterisks after it when it is spam. Example from my trash bin I look at the headers of one arbitrarily trashed message and I see this: X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on pen.homeip.net X-Spam-Level: ******* X-Spam-Status: Yes, hits=7.4 required=3.9 tests=BAYES_70,HTML_20_30, HTML_IMAGE_ONLY_08,HTML_MESSAGE autolearn=no version=2.61 ---------- So I right click on any spam message in my inbox, and say creat a filter, on headers, and enter "X-Spam-Level: ****" (without quotes) as the header I want to filter on. So I might see a few messages that are still spam (those with only 3 or 4 asterisks, (as a safety feature) but the rest go striaight to trash. -- _____________________________________ John Andersen