[Spambayes] Problems getting started with IMAP...

Paul Michali pcm at cisco.com
Mon Apr 26 19:17:34 EDT 2004


Paul Michali wrote:

> Tony Meyer wrote:
> 
>>> I applied this patch and deleted the .pyc file just in case.
>>> However, when I try the stats, I still get the same error:
>>>
>>
>> [...]
>>
>>> AttributeError: 'NoneType' object has no attribute 'keys'
>>>
>>> Is there something else that needs to be updated?
>>
>>
>>
>> Hmm, odd.  Maybe that wasn't the problem (although it was *a* problem).
>> Could you try:
>>
>>  1. In your configuration file, add a "[globals]" section (if there isn't
>> already one) and in that section add "verbose:True".  When you run
>> sb_imapfilter.py, do you now get a "Warning: no dbm modules available" 
>> error
>> printed out?  (You shouldn't, because it shouldn't be trying use use dbm,
>> but it would explain why msginfoDB is None).
> 
> 
> Nope. I get this:
> 
> Loading state from hammie.db pickle
> hammie.db is an existing pickle, with 350 ham and 2816 spam
> Loading database hammie.db... Done.
> 
>>
>>  2. In the same place in message.py (line 214, I think) as the previous
>> patch, add a line just after that stuff that has:
>>
>> """
>> print options["Storage", "persistent_use_database"], msginfoDB
>> """
>>
>> This should print out something like "pickle <MessageInfoPickle object at
>> ...>", if all is well.
> 
> 
> Hmm. I added that line (indented four spaces), right after
> the if clause, but I don't see any message displayed in
> the Web page or on the console output. Am I doing anything
> wrong?
> 

Something is unusual here. I realized that the print line
should not have been indented, so I removed the four spaces.
When I re-ran, I got this output...


sb_imapfilter2.py -b -p hammie.db -P
Warning: no dbm modules available for MessageInfoDB
dbm <spambayes.message.MessageInfoDB object at 0x3a0470>
SpamBayes IMAP Filter Version 0.3 (April 2004)
and engine SpamBayes Engine Version 0.3 (January 2004).

Loading state from hammie.db pickle
hammie.db is an existing pickle, with 351 ham and 2816 spam
Loading database hammie.db... Done.
Password:

Two things here. First, I now see the warning message that
you mentioned above. Second, it looks like it is saying
dbm instead of pickle.  Any idea of why it thinks it is
using the dbm vs pickle?

Thanks!

PCM @ WORK (Paul Michali)




More information about the Spambayes mailing list