'Return the server name to connect to.
We first check the usual IMAP settings, and then fall back to
imap.gmail.com if nothing is specified.'

def gethost(self):

    try:
        return super(GmailRepository, self).gethost()
    except OfflineImapError:
        self._host = 'imap.gmail.com'
        return self._host
