[spambayes-dev] Re: [Spambayes] Lotus Notes filter error KeyError:('Hammie', 'header_spam_string')

Tony Meyer tameyer at ihug.co.nz
Sun Nov 16 22:07:06 EST 2003


> [Mike]
> > File "C:\Program Files\Python23\Scripts\sb_notesfilter.py", 
> line 237, in processAndTrain
> >     str = options["Hammie", "header_spam_string"]
> 
> I don't know much about the Notes stuff, but that looks like 
> a bug.  That piece of code should probably be:
> 
>     if is_spam:
>         str = options["Headers", "header_spam_string"]
>     else:
>         str = options["Headers", "header_ham_string"]
[...]
> I'm forwarding this to spambayes-dev to see whether anyone 
> there knows for sure whether I'm right about this...?

This is a bit out of date now, but I can't see a message confirming it, so:

Yes, that's right.  When I went through the scripts and updated the options
names I either missed some in notesfilter (as with some elsewhere), or
deliberately left notesfilter alone (I can't recall which) since it needs
updating in various places (TimS created it, used it, and planned to update
it, but never managed to find time).

I notice that this fix has been checked in anyway, so this is just in case
you were wondering, or for anyone reading the archives ;)

=Tony Meyer




More information about the spambayes-dev mailing list