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:
		 Abdo Roig-Maranges
					Abdo Roig-Maranges
				
			
				
					committed by
					
						 Eygene Ryabinkin
						Eygene Ryabinkin
					
				
			
			
				
	
			
			
			 Eygene Ryabinkin
						Eygene Ryabinkin
					
				
			
						parent
						
							789e047734
						
					
				
				
					commit
					09556d645e
				
			| @@ -25,12 +25,6 @@ class GmailMaildirRepository(MaildirRepository): | ||||
|         """Initialize a MaildirRepository object.  Takes a path name | ||||
|         to the directory holding all the Maildir directories.""" | ||||
|         super(GmailMaildirRepository, self).__init__(reposname, account) | ||||
|         if self.account.getconfboolean('synclabels', 0) and \ | ||||
|               self.account.getconf('status_backend', 'plain') != 'sqlite': | ||||
|             raise OfflineImapError("The GmailMaildir repository needs the sqlite backend to sync labels.\n" | ||||
|                                    "To enable it add 'status_backend = sqlite' in the account section", | ||||
|                                    OfflineImapError.ERROR.REPO) | ||||
|  | ||||
|  | ||||
|  | ||||
|     def getfoldertype(self): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user