[Spambayes] imap filter BadIMAPResponseError

Steve Fluegel barrier at fluegel.com
Tue Sep 13 07:32:29 CEST 2005


I'm trying to get the sb_imapfilter to talk to my Exchange 5.5 server's IMAP interface, but I keep getting the same error. I'm using ActiveState's ActivePython 2.4 on XP SP2.

Any help will be greatly appreciated!

Thanks,
Steve

Here's the printout...

C:\Python24\Scripts>python sb_imapfilter.py -v -l 5 -P -i 4 -t
SpamBayes IMAP Filter Version 1.1a1 (April 2005).

Loading database C:\Documents and Settings\steve\Application Data\SpamBayes\Prox
y\hammie.db...Loading state from C:\Documents and Settings\steve\Application Dat
a\SpamBayes\Proxy\hammie.db database
C:\Documents and Settings\steve\Application Data\SpamBayes\Proxy\hammie.db is an
 existing database, with 0 spam and 0 ham
 Done.
Enter password for barrier:
User interface url is http://localhost:8880/
Account: mail.fluegel.com:143
  26:42.47 > LCN1 LOGIN barrier "???????"
  26:42.58 < LCN1 OK LOGIN completed.
Training
  26:42.58 > LCN2 SELECT INBOX
  26:42.67 < * 82 EXISTS
  26:42.67 < * 0 RECENT
  26:42.67 < * FLAGS (\Seen \Answered \Flagged \Deleted \Draft)
  26:42.67 < * OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Deleted \Draft)]
  26:42.67 < * OK [UIDVALIDITY 5511] UIDVALIDITY value.
  26:42.69 < LCN2 OK [READ-WRITE] SELECT completed.
   Training ham folder INBOX
  26:42.69 > LCN3 UID SEARCH UNDELETED
  26:42.75 < * SEARCH 2 6 11 13 16 19 20 21 25 26 27 28 30 31 32 33 34 35 36 38
40 41 42 43 44 45 46 47 49 51 69 72 74 75 76 78 80 82 86 87 88 89 90 92 97 102 1
03 105 106 107 112 114 115 118 239 256 443 765 795 1070 1327 1613 2209 2778 2920
 3504 4651 4730 6223 6259 6999 8095 8111 10719 10829 10850 10931 11085 11102 112
42 11546 11547
  26:42.75 < LCN3 OK SEARCH completed.
  26:42.75 > LCN4 UID FETCH 2 RFC822.HEADER
  26:42.84 < * 1 FETCH (RFC822.HEADER {1020}
  26:42.84 read literal size 1020
  26:42.92 <  UID 2)
  26:42.92 < LCN4 OK FETCH completed.
Traceback (most recent call last):
  File "sb_imapfilter.py", line 1203, in ?
    run()
  File "sb_imapfilter.py", line 1181, in run
    imap_filter.Train()
  File "sb_imapfilter.py", line 945, in Train
    num_trained = folder.Train(self.classifier, is_spam)
  File "sb_imapfilter.py", line 829, in Train
    for msg in self:
  File "sb_imapfilter.py", line 740, in __iter__
    yield self[key]
  File "sb_imapfilter.py", line 772, in __getitem__
    data = self.imap_server.extract_fetch_data(response_data)
  File "sb_imapfilter.py", line 399, in extract_fetch_data
    msg_data = self._extract_fetch_data(msg)
  File "sb_imapfilter.py", line 372, in _extract_fetch_data
    raise BadIMAPResponseError("FETCH response", response)
__main__.BadIMAPResponseError: The command 'FETCH response' failed to give an OK
 response.
(' UID 2)',)

C:\Python24\Scripts>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/spambayes/attachments/20050913/f182f9ad/attachment.htm


More information about the Spambayes mailing list