summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-05 03:08:46 (GMT)
committerGuido van Rossum <guido@python.org>1998-05-05 03:08:46 (GMT)
commita986bb7e5c9597b4e9407502795e20f4a8855699 (patch)
treeca192bccd85961519e7832376a1ef71320357529
parentb485224d82e2dc76c10e940e364425ab58524847 (diff)
downloadcpython-a986bb7e5c9597b4e9407502795e20f4a8855699.zip
cpython-a986bb7e5c9597b4e9407502795e20f4a8855699.tar.gz
cpython-a986bb7e5c9597b4e9407502795e20f4a8855699.tar.bz2
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.
-rw-r--r--Lib/imaplib.py3
1 files changed, 0 insertions, 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]) = <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)