[PATCH 1/4] maildir: allow to return non standard flags

Igor Mammedov imammedo at redhat.com
Thu Aug 16 02:50:08 BST 2012


Signed-off-by: Igor Mammedov <imammedo at redhat.com>
---
 offlineimap/folder/Maildir.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/offlineimap/folder/Maildir.py b/offlineimap/folder/Maildir.py
index 24d943c..6609baa 100644
--- a/offlineimap/folder/Maildir.py
+++ b/offlineimap/folder/Maildir.py
@@ -140,9 +140,7 @@ class MaildirFolder(BaseFolder):
                 uid = long(uidmatch.group(1))
         flagmatch = self.re_flagmatch.search(filename)
         if flagmatch:
-            # Filter out all lowercase (custom maildir) flags. We don't
-            # handle them yet.
-            flags = set((c for c in flagmatch.group(1) if not c.islower()))
+            flags = set((c for c in flagmatch.group(1)))
         return prefix, uid, fmd5, flags
 
     def _scanfolder(self):
-- 
1.7.11.2





More information about the OfflineIMAP-project mailing list