From b39845c48816268ccd840035b4640337f4fe7805 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Tue, 16 May 2006 04:31:44 +0100 Subject: [PATCH] stop UID FETCH 0 errors --- offlineimap/folder/IMAP.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/offlineimap/folder/IMAP.py b/offlineimap/folder/IMAP.py index 41c6982..2768105 100644 --- a/offlineimap/folder/IMAP.py +++ b/offlineimap/folder/IMAP.py @@ -242,7 +242,8 @@ class IMAPFolder(BaseFolder): finally: self.imapserver.releaseconnection(imapobj) - self.messagelist[uid] = {'uid': uid, 'flags': flags} + if uid: + self.messagelist[uid] = {'uid': uid, 'flags': flags} ui.debug('imap', 'savemessage: returning %d' % uid) return uid