[Imaplib2-devel] STARTTLS and certificates Re:[ANNOUNCE] OfflineIMAP v6.3.4-rc3 released
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
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
Size: 197 bytes
Desc: not available
More information about the OfflineIMAP-project