remove dead code: the description of the passes is never used
Some minor style fixes. Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
@ -19,8 +19,7 @@ import re
|
||||
import six
|
||||
from sys import exc_info
|
||||
|
||||
from offlineimap import imaputil, OfflineImapError
|
||||
from offlineimap import imaplibutil
|
||||
from offlineimap import imaputil, imaplibutil, OfflineImapError
|
||||
import offlineimap.accounts
|
||||
from .IMAP import IMAPFolder
|
||||
|
||||
@ -46,7 +45,7 @@ class GmailFolder(IMAPFolder):
|
||||
super(GmailFolder, self).__init__(imapserver, name, repository)
|
||||
self.trash_folder = repository.gettrashfolder(name)
|
||||
# Gmail will really delete messages upon EXPUNGE in these folders
|
||||
self.real_delete_folders = [ self.trash_folder, repository.getspamfolder() ]
|
||||
self.real_delete_folders = [self.trash_folder, repository.getspamfolder()]
|
||||
|
||||
# The header under which labels are stored
|
||||
self.labelsheader = self.repository.account.getconf('labelsheader', 'X-Keywords')
|
||||
@ -57,10 +56,10 @@ class GmailFolder(IMAPFolder):
|
||||
# if synclabels is enabled, add a 4th pass to sync labels
|
||||
if self.synclabels:
|
||||
self.imap_query.insert(0, 'X-GM-LABELS')
|
||||
self.syncmessagesto_passes.append(('syncing labels', self.syncmessagesto_labels))
|
||||
self.syncmessagesto_passes.append(self.syncmessagesto_labels)
|
||||
|
||||
# Labels to be left alone
|
||||
ignorelabels = self.repository.account.getconf('ignorelabels', '')
|
||||
ignorelabels = self.repository.account.getconf('ignorelabels', '')
|
||||
self.ignorelabels = set([l for l in re.split(r'\s*,\s*', ignorelabels) if len(l)])
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user