classification
Title: imaplib is not IPv6-capable
Type: feature request
Components: Library (Lib) Versions: Python 2.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: dmorr
Priority: normal Keywords: patch

Created on 2007-12-18 21:34 by dmorr, last changed 2007-12-19 20:37 by dmorr.

Files
File name Uploaded Description Edit Remove
imaplib_ipv6.patch dmorr, 2007-12-18 21:34
imaplib_ipv6.patch dmorr, 2007-12-19 20:37
Messages
msg58775 (view) Author: Derek Morr (dmorr) Date: 2007-12-18 21:34
imaplib.IMAP4 and IMAP4_SSL do not use IPv6-capable name resolution
APIs. Attached is a patch (lifted from httplib) that enables IPv6 in
their open() methods.
msg58827 (view) Author: Derek Morr (dmorr) Date: 2007-12-19 20:37
I think it makes more sense to use socket.create_connection(), which
performs the getaddrinfo call. It makes the patch against imaplib more
compact. I've attached a new patch that uses create_connection()
History
Date User Action Args
2007-12-19 20:37:27dmorrsetfiles: + imaplib_ipv6.patch
messages: + msg58827
2007-12-18 21:48:15christian.heimessetpriority: normal
keywords: + patch
type: feature request
versions: + Python 2.6, - Python 2.5
2007-12-18 21:34:58dmorrcreate