From a986bb7e5c9597b4e9407502795e20f4a8855699 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 5 May 1998 03:08:46 +0000 Subject: 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. --- Lib/imaplib.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/Lib/imaplib.py b/Lib/imaplib.py index bbca38e..1ecb901 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) -- cgit v0.12