[Spambayes] big imapfilter.py problem
dave at boost-consulting.com
Sun Apr 27 22:20:30 EDT 2003
"Meyer, Tony" <T.A.Meyer at massey.ac.nz> writes:
>> What's happening here is in:
>> File "spambayes/message.py", line 118, in _getState
>> (msg.c, msg.t) = self.db[msg.getId()]
>> is a email.Message object
> TimS might have a better idea, but I *think* that this is a result of
> the message db being fixed ;) The db used to store message objects, and
> now stores a tuple of the classification and training information. So
> self.db[msg.getID()] should return a tuple, *not* an email object.
> Delete (or rename) your message database and this should work. (This
> won't effect your classification database, just the memory of which
> messages have been classified/trained, which was inaccurate anyway).
What's a message database, and where do I find it?
OK, I presume spambayes.messageinfo.db is it.
> Apologies for this - we should have realised that old (message)
> databases would become invalid and need to be removed and posted a
> message to that effect.
No problem; just let me know if I've got the details about how to get
out of it right.
More information about the Spambayes