summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-21 22:06:56 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-21 22:06:56 (GMT)
commit04da10c7a2fa0bd060e8052a9fe3d47623324b94 (patch)
tree8cd449f2701cade4fadf0605fa5010fd6aac1c1b
parent3f200d76dfc4215b4fc8fbe1c803c7476ad86735 (diff)
downloadcpython-04da10c7a2fa0bd060e8052a9fe3d47623324b94.zip
cpython-04da10c7a2fa0bd060e8052a9fe3d47623324b94.tar.gz
cpython-04da10c7a2fa0bd060e8052a9fe3d47623324b94.tar.bz2
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. """
-rw-r--r--Lib/imaplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py
index fcb7eb9..cf79449 100644
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -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`)