fix incorrect size calc. in IMAP4_SSL.read
This commit is contained in:
parent
6fe3d7009e
commit
17031bf421
|
@ -1059,7 +1059,7 @@ class IMAP4_SSL(IMAP4):
|
|||
# sslobj.read() sometimes returns < size bytes
|
||||
data = self.sslobj.read(size)
|
||||
while len(data) < size:
|
||||
data += self.sslobj.read(len(data)-size)
|
||||
data += self.sslobj.read(size-len(data))
|
||||
|
||||
return data
|
||||
|
||||
|
|
Loading…
Reference in New Issue