Commit b50965bc authored by Guido van Rossum's avatar Guido van Rossum

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.
parent 0a794788
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment