Title: [commits] (bkirsch) [15334] Fixes bug 10828 Mac OSX IMAP Server issue with Chandler Folders.
Revision
15334
Author
bkirsch
Date
2007-09-14 18:44:58 -0700 (Fri, 14 Sep 2007)

Log Message

Fixes bug 10828 Mac OSX IMAP Server issue with Chandler Folders. The folder flags are now compared case insensitively. r=Morgen

Modified Paths

Diff

Modified: trunk/chandler/parcels/osaf/mail/imap.py (15333 => 15334)

--- trunk/chandler/parcels/osaf/mail/imap.py	2007-09-14 22:14:26 UTC (rev 15333)
+++ trunk/chandler/parcels/osaf/mail/imap.py	2007-09-15 01:44:58 UTC (rev 15334)
@@ -399,6 +399,12 @@
             #   2: the folder name
             folderFlags, folderDelim, folderName = result[0]
 
+            # Assign the lowercase flags back to
+            # the folderFlags variable. This
+            # allows a case insensitive compare
+            # of flags such as \\NoInferiors.
+            folderFlags = map(str.lower, folderFlags)
+
         except:
             # This error should never be raised but a
             # safeguard is put in place just in case.
@@ -413,8 +419,8 @@
         t = constants.CHANDLER_TASKS_FOLDER
         e = constants.CHANDLER_EVENTS_FOLDER
 
-        if not ("\\NoInferiors" in folderFlags or \
-           "\\NoSelect" in folderFlags or \
+        if not ("\\noinferiors" in folderFlags or \
+           "\\noselect" in folderFlags or \
            folderDelim is None or \
            folderDelim.lower() == "nil"):
             # The folder can be created under the INBOX




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to