'IMAP4 connection to a mailbox. With secure=True, SSL is used.
The standard port for SSL is 993.
The standard port without SSL is 143.'

def __init__(self, username, password, service=GMAIL, port=993, secure=True):

    self._username = username
    self._password = password
    self._host = service
    self._port = port
    self._secure = secure
    self._imap4 = None
    self._folders = None
    self.login(username, password)
