-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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 has no timeout setting #82796
Comments
No way to pass a timeout to imaplib.IMAP4 or imaplib.IMAP4_SSL. When opening the connection, the only way is to use socket.settimeout(), which affects the global execution environment. It's interesting that poplib includes the needed timeout parameter instead... weird. I think it was forgotten for imaplib. |
I think this is a reasonable request. It would have to be a 3.9 feature. Perhaps some code (and tests) can be stolen from poplib. |
@eric.smith I 've submitted the patch, Can I get a review from you if you don't mind? |
Thanks Jairo Llopis for the feature request and thanks Dong-hee Na for actually implementing it! |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: