]> granicus.if.org Git - python/commitdiff
Take out the check for AUTH-LOGIN or AUTH=LOGIN in login() -- some
authorGuido van Rossum <guido@python.org>
Tue, 5 May 1998 03:08:46 +0000 (03:08 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 5 May 1998 03:08:46 +0000 (03:08 +0000)
servers support LOGIN but don't advertise it.  If it's not supported
the protocol will respond NO.  Approved by Piers Lauder.

Lib/imaplib.py

index bbca38e5c11a94924c5f81ff03c91ac0ecd2a71a..1ecb9015d0f81a09893ff0408815700e99f9fad0 100644 (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)