[PATCH 2/4] basefolder: add interface to get/set additional flags remap table per folder

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


Signed-off-by: Igor Mammedov <imammedo at redhat.com>
---
 offlineimap/folder/Base.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/offlineimap/folder/Base.py b/offlineimap/folder/Base.py
index 6f6f364..8d6678d 100644
--- a/offlineimap/folder/Base.py
+++ b/offlineimap/folder/Base.py
@@ -44,6 +44,7 @@ class BaseFolder(object):
         if self.visiblename == self.getsep():
             self.visiblename = ''
         self.config = repository.getconfig()
+        self.ext_flags_remap = []
 
     def getname(self):
         """Returns name"""
@@ -431,6 +432,12 @@ class BaseFolder(object):
             for folder in [statusfolder, dstfolder]:
                 folder.deletemessages(deletelist)
 
+    def get_flags_remap(self):
+        return self.ext_flags_remap
+
+    def set_flags_remap(self, remap):
+        self.ext_flags_remap = list(remap)
+
     def syncmessagesto_flags(self, dstfolder, statusfolder):
         """Pass 3: Flag synchronization
 
-- 
1.7.11.2





More information about the OfflineIMAP-project mailing list