Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a986bb7

Browse files
committed
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.
1 parent b485224 commit a986bb7

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Lib/imaplib.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,6 @@ def login(self, user, password):
275275
276276
(typ, [data]) = <instance>.list(user, password)
277277
"""
278-
if not 'AUTH=LOGIN' in self.capabilities \
279-
and not 'AUTH-LOGIN' in self.capabilities:
280-
raise self.error("server doesn't allow LOGIN authorisation")
281278
typ, dat = self._simple_command('LOGIN', user, password)
282279
if typ != 'OK':
283280
raise self.error(dat)

0 commit comments

Comments
 (0)