problem training from mbox Re: [Spambayes] Trained 0 out of 0 messages?

papaDoc papaDoc at videotron.ca
Tue Jun 1 08:33:23 EDT 2004


Hi Juman,

>I'm using Spambayes-1.0rc1 with Python 2.3.4 on RedHat Enterprise Linux ES
>3.0
>I also upgraded Python 2.2.3 to 2.3.4 just in case.
>
>There are two mbox files that I'm trying to use to train Spambayes
>mbox_inbox (212513 bytes)
>mbox_spam (32851 bytes)
>
>I ran
>$ /usr/bin/sb_mboxtrain.py -d $HOME/.hammie.db -g $HOME/mbox_inbox -s
>$HOME/mbox_spam
>Training ham (/home/olbyun/mbox_inbox):
>  Reading as Unix mbox
>  Trained 0 out of 0 messages
>Training spam (/home/olbyun/mbox_spam):
>  Reading as Unix mbox
>  Trained 0 out of 0 messages
>
>Now the file size is reset to 0 and the file size of .hammie.db is not
>changed. I'm not sure if this is a normal behavior.
>  
>
No this is not a normal behavior, sb_mboxtrain should only add a header 
to the email and write it back to the mbox

Are you sure the mbox files contain  complete emails.

What you can do is try with a mbox of only one message and then check if 
the database is created.

Remi

-- 
/"\
\ /
 X   ASCII Ribbon Campaign
/ \  Against HTML Email




More information about the Spambayes mailing list