mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
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.
This commit is contained in:
parent
b485224d82
commit
a986bb7e5c
1 changed files with 0 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue