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

smtplib.LMTP needs timeout parameter #83510

Closed
corona10 opened this issue Jan 14, 2020 · 3 comments
Closed

smtplib.LMTP needs timeout parameter #83510

corona10 opened this issue Jan 14, 2020 · 3 comments
Assignees
Labels
3.9 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@corona10
Copy link
Member

BPO 39329
Nosy @vstinner, @corona10
PRs
  • bpo-39329: Add timeout parameter for LMTP #17998
  • bpo-39329: Fix test_smtplib to follow PEP8 #17999
  • 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/corona10'
    closed_at = <Date 2020-01-14.21:42:46.978>
    created_at = <Date 2020-01-14.13:13:51.557>
    labels = ['type-feature', 'library', '3.9']
    title = 'smtplib.LMTP needs timeout parameter'
    updated_at = <Date 2020-01-14.21:42:46.977>
    user = 'https://github.com/corona10'

    bugs.python.org fields:

    activity = <Date 2020-01-14.21:42:46.977>
    actor = 'vstinner'
    assignee = 'corona10'
    closed = True
    closed_date = <Date 2020-01-14.21:42:46.978>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2020-01-14.13:13:51.557>
    creator = 'corona10'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39329
    keywords = ['patch']
    message_count = 3.0
    messages = ['359975', '360001', '360002']
    nosy_count = 2.0
    nosy_names = ['vstinner', 'corona10']
    pr_nums = ['17998', '17999']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue39329'
    versions = ['Python 3.9']

    @corona10
    Copy link
    Member Author

    see: #17958 (comment)

    I've noticed that LMTP does not support the timeout parameter.
    See: https://docs.python.org/3.9/library/smtplib.html#smtplib.LMTP

    However, LMTP also able to use the socket which is created from SMTP.
    IMHO LMTP needs to support the timeout parameter.

    @corona10 corona10 added the 3.9 only security fixes label Jan 14, 2020
    @corona10 corona10 self-assigned this Jan 14, 2020
    @corona10 corona10 added stdlib Python modules in the Lib dir type-feature A feature request or enhancement 3.9 only security fixes labels Jan 14, 2020
    @corona10 corona10 self-assigned this Jan 14, 2020
    @corona10 corona10 added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jan 14, 2020
    @vstinner
    Copy link
    Member

    New changeset 65a5ce2 by Victor Stinner (Dong-hee Na) in branch 'master':
    bpo-39329: Add timeout parameter for smtplib.LMTP constructor (GH-17998)
    65a5ce2

    @vstinner
    Copy link
    Member

    PR merged, thanks.

    @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
    3.9 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants