docker-offlineimap/offlineimap
John Goerzen 82d5d5e675 Check all resolved addresses [deb #413030]
From: Mark Brown <broonie@sirena.org.uk>
Currently offlineimap will attempt to connect to the first address
returned by addrinfo() for the remote system and will fail if that fails
even if another result would have worked.  This is particularly common
when the remote system supports both IPv4 and IPv6 - a laptop may in
some environments have no routable IPv6 connectivity so if the IPv6
address is returned first the connect will fail even though IPv4 would
have worked.

This is actually a bug in imaplib, a copy of which is included in
offlineimap.  This patch fixes the problem by looping over all the
results returned by getaddrinfo().  Unfortunately it mangles the error
reporting slightly since I couldn't work out how to raise an appropriate
exception, though given that that that was a Python backtrace there was
work to do there anyway.

Note that I have only tested the SSL case.
2007-03-08 02:59:32 +01:00
..
folder Handle rtime being Null when writing to Maildir 2006-12-02 21:54:26 +01:00
repository Add remote{host,user,pass}eval config options (need documentation yet) 2006-10-17 20:55:03 +01:00
ui --help shows available UIs now 2007-01-11 10:15:06 +01:00
__init__.py Step 2 of SVN to arch tree conversion 2005-04-16 20:33:35 +01:00
accounts.py New restoreatime patch from Ben Kibbey 2006-09-06 02:33:07 +01:00
CustomConfig.py Update FSF address 2006-08-12 05:15:55 +01:00
imaplib.py Check all resolved addresses [deb #413030] 2007-03-08 02:59:32 +01:00
imapserver.py Update FSF address 2006-08-12 05:15:55 +01:00
imaputil.py Update FSF address 2006-08-12 05:15:55 +01:00
init.py Add a try: block to catch exceptions that occur before the main loop and to call ui.mainException(). 2006-12-01 11:59:22 +01:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Update FSF address 2006-08-12 05:15:55 +01:00
syncmaster.py Update FSF address 2006-08-12 05:15:55 +01:00
threadutil.py Update FSF address 2006-08-12 05:15:55 +01:00
version.py --help shows available UIs now 2007-01-11 10:15:06 +01:00