Adapt plain status folder to gmail labels stuff
* Implements Status Folder format v2, with a mechanism to upgrade an old statusfolder. * Do not warn about Gmail and GmailMaildir needing sqlite backend anymore. * Clean repository.LocalStatus reusing some code from folder.LocalStatus. * Change field separator in the plaintext file from ':' to '|'. Now the local status stores gmail labels. If they contain field separator character (formerly ':'), they get messed up. The new character '|' is less likely to appear in a label. Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
This commit is contained in:

committed by
Eygene Ryabinkin

parent
789e047734
commit
09556d645e
@ -36,12 +36,6 @@ class GmailRepository(IMAPRepository):
|
||||
'ssl', 'yes')
|
||||
IMAPRepository.__init__(self, reposname, account)
|
||||
|
||||
if self.account.getconfboolean('synclabels', 0) and \
|
||||
self.account.getconf('status_backend', 'plain') != 'sqlite':
|
||||
raise OfflineImapError("The Gmail repository needs the sqlite backend to sync labels.\n"
|
||||
"To enable it add 'status_backend = sqlite' in the account section",
|
||||
OfflineImapError.ERROR.REPO)
|
||||
|
||||
|
||||
def gethost(self):
|
||||
"""Return the server name to connect to.
|
||||
|
Reference in New Issue
Block a user