This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jairo Llopis
Recipients Jairo Llopis
Date 2019-10-28.13:58:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572271081.51.0.380114547236.issue38615@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-10-28 13:58:01Jairo Llopissetrecipients: + Jairo Llopis
2019-10-28 13:58:01Jairo Llopissetmessageid: <1572271081.51.0.380114547236.issue38615@roundup.psfhosted.org>
2019-10-28 13:58:01Jairo Llopislinkissue38615 messages
2019-10-28 13:58:00Jairo Llopiscreate