docker-offlineimap/offlineimap/repository
Ebben Aries 9bfd610230 change hard coding of AF_UNSPEC to user-defined address-families per repository
Some environments that return AAAA records for their IMAP servers can pose
problems for clients that do not have end-to-end IPv6 connectivity for a number
of reasons (e.g. policy, lack of full routing, security, etc..)

Even with a fallback mechanism in place, you can still arrive at IMAP
implementations that could prevent authentication from unknown IPv6 space. This
in itself is not enough to fallback to IPv4 since there is an actual connection
on that socket.

This change is for introducing a user-defined value:

  [Repository imap-remote]
  ipv6 = no

to create a preference per repository on which AF to connect to the remote
server on

ipv6 = yes (AF_INET6)
ipv6 = no (AF_INET)
unspecified = default

Signed-off-by: Ebben Aries <e@dscp.org>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-02-23 06:57:21 +01:00
..
__init__.py more style consistency 2015-02-10 17:25:00 +01:00
Base.py Maildir repository: add config keys for IMAP keywords 2015-11-22 19:50:43 +01:00
Gmail.py do use the XOAUTH2 url if configured 2015-10-12 07:51:05 +02:00
GmailMaildir.py repository: GmailMaildir: fix copyright 2015-01-14 18:01:05 +01:00
IMAP.py change hard coding of AF_UNSPEC to user-defined address-families per repository 2016-02-23 06:57:21 +01:00
LocalStatus.py more style consistency 2015-02-10 17:25:00 +01:00
Maildir.py Keywords: avoid warning at each message when no keywords are used 2015-11-22 20:05:34 +01:00