def __init__(self, reposname, account): """Initialize a GmailRepository object.""" account.getconfig().set('Repository ' + reposname, 'remotehost', GmailRepository.HOSTNAME) account.getconfig().set('Repository ' + reposname, 'remoteport', GmailRepository.PORT) account.getconfig().set('Repository ' + reposname, 'ssl', 'yes') IMAPRepository.__init__(self, reposname, account)
def __init__(self, reposname, account): """Initialize a GmailRepository object.""" # Enforce SSL usage account.getconfig().set('Repository ' + reposname, '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 __init__(self, reposname, account): """Initialize a GmailRepository object.""" # Enforce SSL usage account.getconfig().set('Repository ' + reposname, '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 __init__(self, reposname, account): """Initialize a GmailRepository object.""" # Enforce SSL usage account.getconfig().set('Repository ' + reposname, 'ssl', 'yes') IMAPRepository.__init__(self, reposname, account)
def __init__(self, reposname, account): """Initialize a GmailRepository object.""" IMAPRepository.__init__(self, reposname, account)