[Imaplib2-devel] STARTTLS and certificates Re:[ANNOUNCE] OfflineIMAP v6.3.4-rc3 released

Sebastian Spaeth sebastian at sspaeth.de
Mon Jul 11 13:29:28 BST 2011

On Mon, 11 Jul 2011 22:14:13 +1000, Piers Lauder <piers at janeelix.com> wrote:
> I'm happy to consider changes to open() if it will help imaplib2
> users. 

Cool, offlineimap has been carrying modified open()s for quite a long
time now, in order to enable both IPv4 and IPv6 connections (python
apparently only gets and connects via IPv4 by default).

The unfortunately somewhat underdocumented piece starts at:

and goes for a few lines. This is is where the code comes from:
        #rather than just self.sock = socket.create_connection((host, port))
        #we use the below part to be able to connect to ipv6 addresses too
        #This connects to the first ip found ipv4/ipv6
        #Added by Adriaan Peeters <apeeters at lashout.net> based on a socket
        #example from the python documentation:

Including something along these lines into imaplib2 would be nice and
would kill off a big piece of our "imaplibUTIL" file :-).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110711/77d45dbd/attachment-0001.sig>

More information about the OfflineIMAP-project mailing list