commit | 37d4f7bc0c3b9c6e2bd858873c691c9d2bf091ae | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Sat Feb 23 19:06:54 2008 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Sat Feb 23 19:06:54 2008 +0000 |
tree | 1ebbf6a1bb7e9c7de0d5cc66cce2f62756f6b8b5 | |
parent | 31679397af59ac78293d00f52c6732faafc949ed [diff] [blame] |
#1389051: IMAP module tries to read entire message in one chunk. Patch by Fredrik Lundh.
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 08e1520..129de06 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py
@@ -1147,7 +1147,7 @@ chunks = [] read = 0 while read < size: - data = self.sslobj.read(size-read) + data = self.sslobj.read(min(size-read, 16384)) read += len(data) chunks.append(data)