From e12b9771eaaac583416f0b5a0c164f95531a6e4d Mon Sep 17 00:00:00 2001 From: jgoerzen Date: Fri, 21 Jun 2002 01:53:22 +0100 Subject: [PATCH] /head: changeset 22 Fixed ssl.send --- head/offlineimap/imaplib.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/head/offlineimap/imaplib.py b/head/offlineimap/imaplib.py index 25c7afc..2672eb1 100644 --- a/head/offlineimap/imaplib.py +++ b/head/offlineimap/imaplib.py @@ -860,7 +860,6 @@ class IMAP4: if self.debug >= 4: self._mesg('read literal size %s' % size) data = self.read(size) - print "Got data size %d" % len(data) # Store response with literal as tuple @@ -1076,7 +1075,10 @@ class IMAP4_SSL(IMAP4): def send(self, data): """Send data to remote.""" - self.sslobj.write(data) + byteswritten = 0 + bytestowrite = len(data) + while byteswritten < bytestowrite: + byteswritten += self.sslobj.write(data[byteswritten:]) def shutdown(self):