classification
Title: smtplib.LMTP needs timeout parameter
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: corona10 Nosy List: corona10, vstinner
Priority: normal Keywords: patch

Created on 2020-01-14 13:13 by corona10, last changed 2020-01-14 21:42 by vstinner. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 17998 merged corona10, 2020-01-14 13:19
PR 17999 closed corona10, 2020-01-14 13:58
Messages (3)
msg359975 - (view) Author: Dong-hee Na (corona10) * (Python triager) Date: 2020-01-14 13:13
see: https://github.com/python/cpython/pull/17958#issuecomment-573390867

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.
msg360001 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-01-14 21:42
New changeset 65a5ce247f177c4c52cfd104d9df0c2f3b1c91f0 by Victor Stinner (Dong-hee Na) in branch 'master':
bpo-39329: Add timeout parameter for smtplib.LMTP constructor (GH-17998)
https://github.com/python/cpython/commit/65a5ce247f177c4c52cfd104d9df0c2f3b1c91f0
msg360002 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-01-14 21:42
PR merged, thanks.
History
Date User Action Args
2020-01-14 21:42:46vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg360002

stage: patch review -> resolved
2020-01-14 21:42:16vstinnersetmessages: + msg360001
2020-01-14 13:58:17corona10setpull_requests: + pull_request17403
2020-01-14 13:19:02corona10setkeywords: + patch
stage: patch review
pull_requests: + pull_request17402
2020-01-14 13:13:51corona10create