Support Requests item #1388546, was opened at 2005-12-22 19:09 Message generated for change (Comment added) made by bullock You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=498104&aid=1388546&group_id=61702
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Submitted By: Greg Bullock (bullock) Assigned to: Nobody/Anonymous (nobody) Summary: Can't get SB (Windows) to work with IMAP server Initial Comment: I loved SpamBayes when I had an POP3 server. Now that I'm using an IMAP email server, I'm trying to get it to work with that. The setup seemed to work OK, but the filtering gives an error message and aborts. I've just installed Python 2.4 and SpamBayes 1.0.4 on my Windows XP system with Outlook Express 6. The "Configuration", "Configure folders to filter" and "Configure folders to train" steps went fine, and SpamBayes correctly identified the available IMAP folders. But I can't seem to get the actual filtering to work. Here's the command line and error response: C:\Python24\Scripts>sb_imapfilter.py -c -t -l 5 SpamBayes IMAP Filter Version 0.6 (January 2005) and engine SpamBayes Engine Version 0.3 (January 2004). Traceback (most recent call last): File "C:\Python24\Scripts\sb_imapfilter.py", line 947, in ? run() File "C:\Python24\Scripts\sb_imapfilter.py", line 933, in run imap_filter.Train() File "C:\Python24\Scripts\sb_imapfilter.py", line 766, in Train num_ham_trained = folder.Train(self.classifier, False) File "C:\Python24\Scripts\sb_imapfilter.py", line 686, in Train for msg in self: File "C:\Python24\Scripts\sb_imapfilter.py", line 613, in __iter__ yield self[key] File "C:\Python24\Scripts\sb_imapfilter.py", line 662, in __getitem__ msg.Save() File "C:\Python24\Scripts\sb_imapfilter.py", line 545, in Save response = imap.uid("SEARCH", "(UNDELETED HEADER %s \"%s\")" % \ File "C:\Python24\lib\imaplib.py", line 725, in uid typ, dat = self._simple_command(name, command, *args) File "C:\Python24\lib\imaplib.py", line 1028, in _simple_command return self._command_complete(name, self._command(name, *args)) File "C:\Python24\lib\imaplib.py", line 865, in _command_complete raise self.error('%s command error: %s %s' % (name, typ, data)) imaplib.error: UID command error: BAD ['UID invalid arguments'] Any help most appreciated. Regards. Greg ---------------------------------------------------------------------- >Comment By: Greg Bullock (bullock) Date: 2005-12-23 21:31 Message: Logged In: YES user_id=1131257 I just switched to SpamBayes 1.1a1 and tried again. I get a different error message now, but I'm still just as stumped as before about how to solve this or even how to look into the error. Here's the command line and new error message (this time with some debugging information): C:\Python24\Scripts>sb_imapfilter.py -i 4 -t SpamBayes IMAP Filter Version 1.1a1 (April 2005). 22:51.52 > CBHD1 LOGIN "[EMAIL PROTECTED]" "********" 22:51.57 < CBHD1 OK LOGIN completed 22:51.57 > CBHD2 SELECT Chisato 22:51.63 < * 0 EXISTS 22:51.82 < * 0 RECENT 22:51.82 < * OK [UIDVALIDITY 0] UIDs valid 22:51.82 < * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) 22:51.82 < * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft)] 22:51.82 < CBHD2 OK [READ-WRITE] SELECT completed 22:51.82 > CBHD3 UID SEARCH UNDELETED 22:51.88 < CBHD3 OK UID completed 22:51.88 > CBHD4 SELECT Personal 22:51.95 < * 85 EXISTS 22:52.13 < * 0 RECENT 22:52.13 < * OK [UIDVALIDITY 0] UIDs valid 22:52.13 < * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) 22:52.13 < * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft)] 22:52.13 < CBHD4 OK [READ-WRITE] SELECT completed 22:52.13 > CBHD5 UID SEARCH UNDELETED 22:52.18 < * SEARCH 131 133 143 146 147 148 158 161 162 166 170 171 172 174 17 7 178 179 180 186 190 191 192 194 198 199 206 211 212 214 215 216 220 224 228 23 2 237 238 242 265 266 267 273 278 279 287 289 290 294 295 296 298 299 300 310 32 3 324 325 326 328 330 335 336 337 338 340 341 342 343 344 345 347 348 349 350 35 1 352 353 354 356 357 358 359 361 22:52.33 < CBHD5 OK UID completed 22:52.33 > CBHD6 UID FETCH 131 RFC822.HEADER 22:52.53 < * 2 FETCH (RFC822.HEADER {935} 22:52.54 read literal size 935 22:52.54 < UID 131) 22:52.54 < CBHD6 OK UID completed Traceback (most recent call last): File "C:\Python24\Scripts\sb_imapfilter.py", line 1203, in ? run() File "C:\Python24\Scripts\sb_imapfilter.py", line 1181, in run imap_filter.Train() File "C:\Python24\Scripts\sb_imapfilter.py", line 945, in Train num_trained = folder.Train(self.classifier, is_spam) File "C:\Python24\Scripts\sb_imapfilter.py", line 829, in Train for msg in self: File "C:\Python24\Scripts\sb_imapfilter.py", line 740, in __iter__ yield self[key] File "C:\Python24\Scripts\sb_imapfilter.py", line 772, in __getitem__ data = self.imap_server.extract_fetch_data(response_data) File "C:\Python24\Scripts\sb_imapfilter.py", line 399, in extract_fetch_data msg_data = self._extract_fetch_data(msg) File "C:\Python24\Scripts\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 131)',) Thanks. Greg ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=498104&aid=1388546&group_id=61702 _______________________________________________ Spambayes-bugs mailing list Spambayes-bugs@python.org http://mail.python.org/mailman/listinfo/spambayes-bugs