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:
Guido van Rossum 1998-05-05 03:08:46 +00:00
parent b485224d82
commit a986bb7e5c
1 changed files with 0 additions and 3 deletions

View File

@ -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)