Charles Gregory wrote:
> 
> On Sat, 13 Feb 2010, smfabac wrote:
>> Now that we're all on the same page. How do I find out why sa-learn
>> is not processing the legal not-spam file?  To re-cap, "sa-learn --spam
>> --mbox isspam" works but "sa-learn --ham --mbox not-spam" is not
>> working.
> 
> Well, I would expect if this suggestion were right you would have had all 
> sorts of warning messages about syntax, but just in case....
> 
> Maybe linux is interpreting the dash in the filename as a switch 
> indicator? Try enclosing the file name in single quotes or use a filename 
> without a dash...
> 
> - C
> 
> 
> 
> 

$ ls -lt | head -3
total 15868
-rw-------   1 smf      group     249046 Feb 13 02:37 not-spam
-rw-rw-rw-   1 smf      group      94762 Feb 13 02:29 isspam
$ mv not-spam notspam
$ ls -lt | head -3                        
total 15868
-rw-------   1 smf      group     249046 Feb 13 02:37 notspam
-rw-rw-rw-   1 smf      group      94762 Feb 13 02:29 isspam

$ sa-learn --showdots --ham --mbox notspam

Learned tokens from 0 message(s) (0 message(s) examined)
$

On the off chance that permissions on the file is an issue:

$ chmod 666 notspam
$ ls -lt | head -3                        
total 15868
-rw-rw-rw-   1 smf      group     249046 Feb 13 02:37 notspam
-rw-rw-rw-   1 smf      group      94762 Feb 13 02:29 isspam

$ sa-learn --showdots --ham --mbox notspam

Learned tokens from 0 message(s) (0 message(s) examined)

Still no luck.

-- 
View this message in context: 
http://old.nabble.com/bayes-learning-%270-messages-found%27-tp27358517p27576922.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Reply via email to