]> code.delx.au - offlineimap/blobdiff - offlineimap/folder/IMAP.py
Fix handling of servers that return UIDs in some FETCH responses
[offlineimap] / offlineimap / folder / IMAP.py
index 9ed75ef47557a4433342a2df8415d28924d7ca8f..6b0e805b5e228b3d3722672413f6abeba86b0183 100644 (file)
@@ -410,9 +410,9 @@ class IMAPFolder(BaseFolder):
             if not ('UID' in attributehash and 'FLAGS' in attributehash):
                 # Compensate for servers that don't return a UID attribute.
                 continue
-            flags = attributehash['FLAGS']
+            lflags = attributehash['FLAGS']
             uid = long(attributehash['UID'])
-            self.messagelist[uid]['flags'] = imaputil.flagsimap2maildir(flags)
+            self.messagelist[uid]['flags'] = imaputil.flagsimap2maildir(lflags)
             try:
                 needupdate.remove(uid)
             except ValueError:          # Let it slide if it's not in the list