From: Guido van Rossum Date: Tue, 5 May 1998 03:08:46 +0000 (+0000) Subject: Take out the check for AUTH-LOGIN or AUTH=LOGIN in login() -- some X-Git-Tag: v1.5.2a1~760 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a986bb7e5c9597b4e9407502795e20f4a8855699;p=python 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. --- diff --git a/Lib/imaplib.py b/Lib/imaplib.py index bbca38e5c1..1ecb9015d0 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -275,9 +275,6 @@ class IMAP4: (typ, [data]) = .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)