Hi all,
I'm using Ubuntu Oneiric (development branch), and this week brought
python version 2.7.2rc1 into the archive.
That broke offlineimap with SSL for me. I've opened bug 792043 [1],
and then done some debugging. The breakage is caused by a change that
went into python imaplib for python issue 1441530 [2]. You can see the
specific patch that caused the problem at [3].
Locally, I've tested the fix below. It seems to work both with
python2.6 and python2.7.
Hi all,
I'm using Ubuntu Oneiric (development branch), and this week brought
python version 2.7.2rc1 into the archive.
That broke offlineimap with SSL for me. I've opened bug 792043 [1],
and then done some debugging. The breakage is caused by a change that
went into python imaplib for python issue 1441530 [2]. You can see the
specific patch that caused the problem at [3].
Locally, I've tested the fix below. It seems to work both with
python2.6 and python2.7.
-- pad.lv/ 792043 bugs.python. org/issue144153 0 bugs.python. org/file22063/ imaplib_ recv_27. diff
[1] http://
[2] http://
[3] http://
diff --git a/offlineimap/ imaplibutil. py b/offlineimap/ imaplibutil. py imaplibutil. py imaplibutil. py error(last_ error)
self. sslobj = ssl_wrap(self.sock, self.keyfile, self.certfile) makefile( 'rb')
self. sslobj = sslwrapper( self.sslobj)
index a60242b..21ee3d2 100644
--- a/offlineimap/
+++ b/offlineimap/
@@ -172,6 +172,7 @@ def new_open_ssl(self, host = '', port = IMAP4_SSL_PORT):
# FIXME
raise socket.
+ self.file = self.sslobj.
mustquote = re.compile( r"[^\w! #$%&'+, .:;<=>? ^`|~-]" )