Take out the check for AUTH-LOGIN or AUTH=LOGIN in login() -- some
servers support LOGIN but don't advertise it. If it's not supported the protocol will respond NO. Approved by Piers Lauder.
This commit is contained in:
parent
b485224d82
commit
a986bb7e5c
|
@ -275,9 +275,6 @@ class IMAP4:
|
|||
|
||||
(typ, [data]) = <instance>.list(user, password)
|
||||
"""
|
||||
if not 'AUTH=LOGIN' in self.capabilities \
|
||||
and not 'AUTH-LOGIN' in self.capabilities:
|
||||
raise self.error("server doesn't allow LOGIN authorisation")
|
||||
typ, dat = self._simple_command('LOGIN', user, password)
|
||||
if typ != 'OK':
|
||||
raise self.error(dat)
|
||||
|
|
Loading…
Reference in New Issue