[Spambayes] mboxtrain ham headers overwritten

Tys von Gaza tys at tvg.ca
Fri Aug 15 02:09:28 EDT 2003


And I'm wrong again (maybe I should go to sleep?) it was cause I was using
hammie instead of hammiefilter, duh!

-- 
Tys von Gaza
tys at tvg.ca

> Ok, found my error, and of course it was stupid but I didn't see it
> documented anywhere, so here it is.
>
> I had the following set in my ~/.spambayesrc
> [globals]
> verbose=True
>
> This caused the following lines to be added to the start of each e-mail
> message that got filtered through procmail:
>
> """
> Loading state from /home/gaza/maildata/bayes.db database
> /home/gaza/maildata/bayes.db is an existing database, with 69 spam and 21
> ham
> """
>
> Which then caused mboxtrain, or the e-mail package to think the message
> had zero headers (or something, this is just a guess).
>
> Other then removing verbose lines from hammiefilter (but that is the
> reason for setting verbose) there isn't much way around this other then
> warn people what the cause of setting verbose and using hammiefilter.
>
> Anyways, I'm have sucessfully moved from Outlook to Qmail/Courier IMAP and
> I'm loving it (thanks Qmail, fetchmail, procmail, SquirrelMail and other
> the wonders of dealing with mail under Unix)!
>
> For those courious I have setup my Maildir/IMAP folders and mboxtrain very
> similar to how imapfilter was setup.  When something is incorrectly
> trained I just move it too the TrainHam or TrainSpam folder and a cron job
> runs mboxtrain on those directories, then moves any messages to the
> correct location (sorta).
>
> A few questions, is it safe to just move messages between Maildir folders
> (it seems to work but I don't trust it)?  Second is there anyway to send a
> Maildir message file through procmail again, ie unsure that is really ham
> will get refiltered through procmail and put into the correct location?
>
> Thanks,
>
> --
> Tys von Gaza
> tys at tvg.ca
>
>> As imapfilter is broken for me I've decided to try mboxtrain instead
>> (which is probably a better solution for my setup anyways).
>>
>> I run it as shown below.  It trains spam fine (appends the
>> X-Spambayes-Classification header to the rest of the headers)
>>  , however when it trains ham it replaces ALL the headers with the
>> X-Spambayes-Classification header, leaving the e-mail pretty much
>> useless.
>>
>> Any ideas why?  Am I doing something wrong?  Using about a day old cvs
>> version, Python 2.2.2, Maildirs.
>>
>> Output below:
>>
>> [gaza at games gaza]$ python2.2 /home/gaza/spambayes/mboxtrain.py -d
>> /home/gaza/maildata/bayes.db -g /home/gaza/Maildir/.SB.TrainHam/ -s
>> /home/gaza/Maildir/.SB.TrainSpam/
>> Loading state from /home/gaza/maildata/bayes.db database
>> /home/gaza/maildata/bayes.db is an existing database, with 67 spam and 9
>> ham
>> Training ham (/home/gaza/Maildir/.SB.TrainHam/):
>>   Reading /home/gaza/Maildir/.SB.TrainHam/cur as Maildir
>>   Trained 2 out of 2 messages
>> 1F40E3_0.games.pbgaming.com,S=4291:2,
>> Training spam (/home/gaza/Maildir/.SB.TrainSpam/):
>>   Reading /home/gaza/Maildir/.SB.TrainSpam/cur as Maildir
>>   Trained  out of  messages
>> Persisting /home/gaza/maildata/bayes.db state in database
>>
>> --
>> Tys von Gaza
>> tys at tvg.ca
>>
>>
>>
>> _______________________________________________
>> Spambayes mailing list
>> Spambayes at python.org
>> http://mail.python.org/mailman/listinfo/spambayes
>>
>>
>
>
> _______________________________________________
> Spambayes mailing list
> Spambayes at python.org
> http://mail.python.org/mailman/listinfo/spambayes
>




More information about the Spambayes mailing list