From: SourceForge.net <no...@so...> - 2010-10-19 20:16:56
|
Bugs item #3090802, was opened at 2010-10-19 20:16 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=456910&aid=3090802&group_id=49630 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 Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Empty response from FETCH not handled gracefully Initial Comment: When attempting to FETCH defatils for a particular message number, OpenText FirstClass IMAP may return an "empty" response. It seems the current code does not handle that very well. Example IMAP session with OpenText FirstClass: . EXAMINE "INBOX/foobar" * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS ()] Read-only mailbox. * 3 EXISTS * 0 RECENT * OK [UIDVALIDITY 1100080522] UIDs valid * OK [UIDNEXT 3] Predicted next UID . OK [READ-ONLY] Select completed. . FETCH 1:* (RFC822.SIZE) * 1 FETCH (RFC822.SIZE 5120) * 3 FETCH (RFC822.SIZE 2048) . FETCH 2 (RFC822) . OK FETCH Completed When trying to archive such as mailbox using the current git version of archivemail, it fails like this: 34:57.74 > KKFK128 FETCH 2 (FLAGS) 34:57.77 < KKFK128 OK FETCH Completed 34:57.77 matched r'(?P<tag>KKFK\d+) (?P<type>[A-Z]+) (?P<data>.*)' => ('KKFK128', 'OK', 'FETCH Completed') cleaning up ... removing stale temporary mbox '/tmp/tmpwh4hnzarchivemail/tmp9HUS2s' removing stale tempfile directory '/tmp/tmpwh4hnzarchivemail' Traceback (most recent call last): File "archivemail", line 1822, in <module> main() File "archivemail", line 697, in main archive(mailbox_path) File "archivemail", line 1118, in archive _archive_imap(mailbox_name) File "archivemail", line 1379, in _archive_imap msg_flags = imaplib.ParseFlags(response[0]) File "/usr/lib/python2.6/imaplib.py", line 1374, in ParseFlags mo = Flags.match(resp) TypeError: expected string or buffer ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=456910&aid=3090802&group_id=49630 |