[Spambayes] IMAP Filter error

Kevin Yank thatguy at kevinyank.com
Thu Sep 13 04:04:31 CEST 2007


I've just set up the SpamBayes IMAP Filter on my Windows Vista machine 
(Python 2.5.1 + pywin32 extensions) according to the instructions at 
http://www.entrian.com/sbwiki/HowToUseImapFilter. The Web admin 
interface works, but when I try to run the IMAP Filter daemon I get the 
following error:

c:\Python25\Scripts>python sb_imapfilter.py -c -t -v -l 10
SpamBayes IMAP Filter Version 0.6 (January 2005)
and engine SpamBayes Engine Version 0.3 (January 2004).

Loading database 
C:\Users\Kevin\AppData\Roaming\SpamBayes\Proxy\hammie.db...Load
ing state from C:\Users\Kevin\AppData\Roaming\SpamBayes\Proxy\hammie.db 
database

C:\Users\Kevin\AppData\Roaming\SpamBayes\Proxy\hammie.db is an existing 
database
, with 0 spam and 0 ham
 Done.
Training
   Training ham folder SpamBayes/Train as Not Junk
*Traceback (most recent call last):
  File "sb_imapfilter.py", line 947, in <module>
    run()
  File "sb_imapfilter.py", line 933, in run
    imap_filter.Train()
  File "sb_imapfilter.py", line 766, in Train
    num_ham_trained = folder.Train(self.classifier, False)
  File "sb_imapfilter.py", line 686, in Train
    for msg in self:
  File "sb_imapfilter.py", line 613, in __iter__
    yield self[key]
  File "sb_imapfilter.py", line 662, in __getitem__
    msg.Save()
  File "sb_imapfilter.py", line 547, in Save
    self.id.replace('\\',r'\\').replace('"',r'\"')))
  File "C:\Python25\lib\imaplib.py", line 752, in uid
    typ, dat = self._simple_command(name, command, *args)
  File "C:\Python25\lib\imaplib.py", line 1055, in _simple_command
    return self._command_complete(name, self._command(name, *args))
  File "C:\Python25\lib\imaplib.py", line 892, in _command_complete
    raise self.error('%s command error: %s %s' % (name, typ, data))
imaplib.error: UID command error: BAD ['parse error: unindexed header: 
X-SPAMBAY
ES-MAILID']

Any hints?

--
Kevin Yank


More information about the SpamBayes mailing list