> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of John Wilson > Sent: Saturday, August 14, 2004 11:45 PM > To: [EMAIL PROTECTED] > Subject: Re: [newbie] Teaching Spamassassin > > > On August 9, 2004 03:01 pm, SME Server Admin wrote: > > Hiya > > > > Right. i've had Spam Assassin running for a few weeks now, and have built > > up about 300 or so messages in my Spam/missed spam directory. The actually > > directory is: > > > > Local Folders / Spam / MissedSpam > > > > Now, I've been into shell and done as it asked, ie type in the following > > string. The first one was without a dot before Mail and the second was with > > it in. > > > > It's not working. This is in Kontact by the way. Can anyone help? > > > > TIA > > > > Elwyn > > > > > > [EMAIL PROTECTED] elwyn]$ sa-learn --mbox > > --spam /home/Elwyn/Mail/.spam.directory/MissedSpam/* > > > > Learned from 0 message(s) (0 message(s) examined). > > > > [EMAIL PROTECTED] elwyn]$ sa-learn --mbox > > --spam /home/Elwyn/.Mail/.spam.directory/MissedSpam/* > > > > Learned from 0 message(s) (0 message(s) examined). > > > > [EMAIL PROTECTED] elwyn]$ > Hi everyone. > > All the answers here didn't help me, I don't know about Elwyn. > > No matter WHAT kind of mailbox I have my spam messages placed in sa-learn > refuses to learn. > > My first experience was with the Kontact default of maildir boxes and sa-learn > couldn't even find them. Off to the SA site I go only to discover that SA > hasn't supported maildir boxes for quite a long time. Not a good start. > > Next up was the thought that a competant mail client should have no problem > converting mailboxes. Again, nope. > > So..set up a new directory structure for my spam to be sent to and make sure > it's mbox.. Copy the messages into it then delete everything in the old one. > > New structure is a directory called spam1 with subdirectories called called > filteredspam, missedspan and notspam. > > Now I try to teach spamassassin on what it missed (over 700 messages): > > sa-learn --mbox --spam /home/john/.Mail/spam1.directory/missedspam/* > bayes expire_old_tokens: lock: 24884 cannot create tmp > lockfile /home/john/.spamassassin/bayes.lock.d207-6-227-249.bchsia.telus.net.24884 > for /home/john/.spamassassin/bayes.lock: Permission denied
I assume you are running this as user 'john'. For some reason you don't have permission to write to the /home/john/.spamassassin directory. As root: chown john.john /home/john chown -R john.john /home/john/.spamassassin chmod u+rwx,g+rx /home/john /home/john/.spamassassin Now run the sa-learn command as user 'john'. I don't know what directory your mail is kept in. I use Courier maildirs. So my INBOX is /home/bill/Maildir/cur and /home/bill/Maildir/new. HTH, Bill > > Learned from 0 message(s) (0 message(s) examined). > > Okay..this isn't good either. There seems to be a lock file there somewhere. > > For fun I try as root. > > sa-learn --mbox --spam /home/john/.Mail/spam1.directory/missedspam/* > Learned from 0 message(s) (0 message(s) examined). > > I'll chase down the lock file and try again. But there is one thing that does > bother me a lot. And that's that Konq shows two of the files related to as > plain text (filteredspam and nonspam). So I'm not sure they'll work. > > Help please. In simple words would be nice. :-) > > ttfn > > John > -- > *********************************************************** > Composed on a 100% Microsoft Free Computer > Guaranteed Virus Free > Mandrake Linux 10.0 OE > Registered Linux User 362316 > *********************************************************** > >
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________