JasonHirsh wrote:
>
> On Sun, 2008-04-20 at 09:46 -0700, JasonHirsh wrote:
>   
>> Matt Kettler-3 wrote:
>>     
>
>   
>>>> I have SA 3.17 running with amavisd-new, dovecot and Postfix 2.4.3 and
>>>> Clama/v on freebsd 6.1
>>>>
>>>> I am trying to"teach" sa using the following
>>>>
>>>> sa-learn /var/mail/vmail/example.com/user/.INBOX.spam/cur/
>>>>
>>>> this is a maildir I have put around 175 spam messages in..
>>>>
>>>> I got the following response
>>>>
>>>> Learned tokens from 0 message(s) (0 message(s) examined)
>>>> spam done.archive-iterator: unable to open ~nospam/Maildir/new/: No
>>>>         
>> such
>>     
>>>> file or directory
>>>> Learned tokens from 0 message(s) (0 message(s) examined)
>>>> ls: ~nospam/Maildir/new/: No such file or directory
>>>> nospam done.The --rebuild option has been deprecated.  Please use
>>>>         
>> --sync
>>     
>>>> instead.
>>>>         
>
>   
>>> ie: make sure you're passing the --spam parameter, and no rebuild
>>> parameter.
>>>       
>> I did added the spam parameter and got the exact same error messsege
>>     
>
> Try 'which sa-learn' and 'locate sa-learn'. The failure about the not
> found dir and especially the complaint about the option you did not
> specify suggests, there is an (outdated) wrapper script early in the
> PATH, and you are not actually calling sa-learn as provided by SA.
>
>   guenther
>
>
> Ok 
> which sa-learn yields /usr/bin/sa-learn
> locate produces i
> /usr/bin/sa-learn
> /usr/local/bin/sa-learn
>   

you seem to have two versions of spamassassin on your system (one 
installed from a package?). you should only have one version, otherwise, 
it is hard to troubleshoot problems...

you can try running sa-learn with the full path and see what it says:

/usr/local/bin/sa-learn --spam
/var/mail/vmail/example.com/user/.INBOX.spam/cur/



It is possible that I messed up during the original installation
as noted below your post when I deleted the /usr/bin/sa-learn
all ran good.   If I am not mistaking a package/rpm would tend to go with
the /usr/bin while
ports  (which I did not appreciate whn I started would go with the
usr/local/bin
location..   At least I got it to run
-- 
View this message in context: 
http://www.nabble.com/Bayesian-Learnig-for-SpamAssassin-tp16743984p16797987.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Reply via email to