mirror of
https://github.com/python/cpython.git
synced 2025-10-08 08:01:55 +00:00
Piers Lauder writes:
""" Jochen Hayek has reported a problem with some versions of IMAP4 servers that choose to mix the case in their CAPABILITIES response. The patch below fixes the problem. """
This commit is contained in:
parent
3f200d76df
commit
04da10c7a2
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ class IMAP4:
|
|||
self._simple_command(cap)
|
||||
if not self.untagged_responses.has_key(cap):
|
||||
raise self.error('no CAPABILITY response from server')
|
||||
self.capabilities = tuple(string.split(self.untagged_responses[cap][-1]))
|
||||
self.capabilities = tuple(string.split(string.upper(self.untagged_responses[cap][-1])))
|
||||
|
||||
if __debug__ and self.debug >= 3:
|
||||
_mesg('CAPABILITIES: %s' % `self.capabilities`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue