def __connect(self):
        self.M=imaplib.IMAP4_SSL(self.server , self.port)
        #First field is imap login (gmail uses login with 
        #domain and '@' character), second - password
        self.M.login(self.username, self.password)