Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 7
0
 def __init__(self, reposname, account):
     """Initialize a GmailRepository object."""
     IMAPRepository.__init__(self, reposname, account)
Esempio n. 8
0
 def __init__(self, reposname, account):
     """Initialize a GmailRepository object."""
     IMAPRepository.__init__(self, reposname, account)