示例#1
0
 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)
示例#2
0
 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)
示例#3
0
    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)
示例#4
0
    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)
示例#5
0
 def __init__(self, reposname, account):
     """Initialize a GmailRepository object."""
     # Enforce SSL usage
     account.getconfig().set('Repository ' + reposname,
                             'ssl', 'yes')
     IMAPRepository.__init__(self, reposname, account)
示例#6
0
 def __init__(self, reposname, account):
     """Initialize a GmailRepository object."""
     # Enforce SSL usage
     account.getconfig().set('Repository ' + reposname,
                             'ssl', 'yes')
     IMAPRepository.__init__(self, reposname, account)
示例#7
0
 def __init__(self, reposname, account):
     """Initialize a GmailRepository object."""
     IMAPRepository.__init__(self, reposname, account)
示例#8
0
 def __init__(self, reposname, account):
     """Initialize a GmailRepository object."""
     IMAPRepository.__init__(self, reposname, account)