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 bbca38e..1ecb901 100644
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -275,9 +275,6 @@
(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)