]> granicus.if.org Git - python/commitdiff
Piers Lauder writes:
authorGuido van Rossum <guido@python.org>
Wed, 21 Oct 1998 22:06:56 +0000 (22:06 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 21 Oct 1998 22:06:56 +0000 (22:06 +0000)
"""
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.
"""

Lib/imaplib.py

index fcb7eb9df99b807662465f3114b0aaffd23817c5..cf79449c02047e2b5f46ff7a00dbd8e08fd7c143 100644 (file)
@@ -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`)