def login(self, user, password):
        typ, dat = self._simple_command('LOGIN', user, self._quote(password))
        if typ != 'OK':
            raise self.error(dat[-1])
        self.state = 'AUTH'
        return typ, dat
Identify client using plaintext password.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/imaplib.py/IMAP4.login