[Spambayes] Lotus Notes filter error KeyError: ('Hammie',
'header_spam_string')
Mike Smith
mikesmithjunkmail at earthlink.net
Wed Nov 5 14:11:44 EST 2003
Help! My company has just switched from Outlook to Lotus Notes. I receive > 300 spam daily, which was managed quite well by the Outlook plug-in, but now it's out of control until I get the notes filter working. I am runnnig Lotus Notes 5.0.11 on Windows 2000. Here is what I have done:
Downloaded and installed Python version 2.3.2
Downloaded spambayes-1.0a7.zip, unzipped and ran setup.py build and setup.py install
In notes, created folder spam, with subfolders Ham, Spam, Train as Ham, Train as Spam
Replicated notes to local database msmith1.nsf
Now, if I run sb_notesfilter.py to classify only (no training has been done yet), I get the following:
0 documents processed
0 classified as spam
0 classified as ham
0 classified as unsure
The Spambayes database currently has 0 Spam and 0 Ham
When I try to train, it dies. Here is the command I'm entering:
C:\Program Files\Python23\Scripts>sb_notesfilter.py -t -d spambayes -l c:\apps\N
otes\Data\msmith1.nsf -f spam
Here is the Traceback:
Traceback (most recent call last):
File "C:\Program Files\Python23\Scripts\sb_notesfilter.py", line 384, in ?
sbfname, doTrain, doClassify)
File "C:\Program Files\Python23\Scripts\sb_notesfilter.py", line 321, in run
processAndTrain(vtrainspam, vspam, bayes, True, notesindex)
File "C:\Program Files\Python23\Scripts\sb_notesfilter.py", line 237, in proce
ssAndTrain
str = options["Hammie", "header_spam_string"]
File "C:\PROGRA~1\Python23\lib\site-packages\spambayes\OptionsClass.py", line
562, in __getitem__
return self.get(key[0], key[1])
File "C:\PROGRA~1\Python23\lib\site-packages\spambayes\OptionsClass.py", line
559, in get
return self.get_option(sect, opt).get()
File "C:\PROGRA~1\Python23\lib\site-packages\spambayes\OptionsClass.py", line
553, in get_option
return self._options[sect, opt]
KeyError: ('Hammie', 'header_spam_string
Am I missing something?
More information about the Spambayes
mailing list