Mark Martinec wrote:
> 
> tonjg wrote:
>> I'm trying to run:
>> sa-learn --spam --showdots --dir /path/to...mbox
>> but it fails with:
>> 'Learned tokens from 0 message(s) (0 messages examined)'
>> my spam mail is in a file called mbox but when I run the above command to
>> the directory containg mbox it always fails with the '0 messages
>> examined' error.
> 
> If your messages are in a mbox *file*, you need an option --mbox,
> not --dir .
> 
> smfabac wrote: 
>> I am having a similar problem as the  poster but I have successfully run
>> spamassassin for several years and today when I used the sa-lean
>> command to process the mailbox where I moved the mis-classified
>> mail message (not-spam) I get:
>> 
>> $ sa-learn --showdots --ham --mbox not-spam
>> 
>> Learned tokens from 0 message(s) (0 message(s) examined)
> 
>> Check the mail folder not-spam:
> 
> If "not-spam" is a folder (not a mbox file), you must not
> use the option --mbox.
> 
>   Mark
> 
> 
> 

Mark, 

On UNIX any file is a mbox file if it contains mail messages in the form:

^A^A^A^A
mail headers
mail body
^A^A^A^A
^A^A^A^A
Next Message mail headers
mail body
^A^A^A^A

And my not-spam file meets this requirement:

^A^A^A^A
>From smf  Thu Feb 11 01:30:02 2010
From: Boyd Lynn Gerber <gerb...@zenez.com>
To: distribut...@registry.ca
...
stuff deleted
...
------------=_4B73B21B.8398EDEC--

^A^A^A^A

Also, reading the file with the command "mail -f not-spam" launches 
the UNIX mail reader showing that the file is legal mbox file.
-- 
View this message in context: 
http://old.nabble.com/bayes-learning-%270-messages-found%27-tp27358517p27566692.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Reply via email to