Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imaplib is not IPv6-capable #45996

Closed
dmorr mannequin opened this issue Dec 18, 2007 · 4 comments
Closed

imaplib is not IPv6-capable #45996

dmorr mannequin opened this issue Dec 18, 2007 · 4 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@dmorr
Copy link
Mannequin

dmorr mannequin commented Dec 18, 2007

BPO 1655
Nosy @rhettinger, @pitrou
Files
  • imaplib_ipv6.patch
  • imaplib_ipv6.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/pitrou'
    closed_at = <Date 2009-05-15.11:50:57.220>
    created_at = <Date 2007-12-18.21:34:58.796>
    labels = ['type-feature', 'library']
    title = 'imaplib is not IPv6-capable'
    updated_at = <Date 2009-05-15.11:50:57.219>
    user = 'https://bugs.python.org/dmorr'

    bugs.python.org fields:

    activity = <Date 2009-05-15.11:50:57.219>
    actor = 'pitrou'
    assignee = 'pitrou'
    closed = True
    closed_date = <Date 2009-05-15.11:50:57.220>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2007-12-18.21:34:58.796>
    creator = 'dmorr'
    dependencies = []
    files = ['8987', '9004']
    hgrepos = []
    issue_num = 1655
    keywords = ['patch']
    message_count = 4.0
    messages = ['58775', '58827', '87778', '87810']
    nosy_count = 3.0
    nosy_names = ['rhettinger', 'pitrou', 'dmorr']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'patch review'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue1655'
    versions = ['Python 2.6', 'Python 3.1', 'Python 2.7']

    @dmorr
    Copy link
    Mannequin Author

    dmorr mannequin commented Dec 18, 2007

    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.

    @dmorr dmorr mannequin added the stdlib Python modules in the Lib dir label Dec 18, 2007
    @tiran tiran added the type-feature A feature request or enhancement label Dec 18, 2007
    @dmorr
    Copy link
    Mannequin Author

    dmorr mannequin commented Dec 19, 2007

    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()

    @rhettinger
    Copy link
    Contributor

    AP, this is basically the same patch as the one for nntplib. Do you
    want to apply it also?

    @pitrou
    Copy link
    Member

    pitrou commented May 15, 2009

    Committed in r72662, thanks!

    @pitrou pitrou closed this as completed May 15, 2009
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants