Closed vdessotti closed 1 year ago
Greet.
How did you understand what exactly the library freezes? Where does it hang? Show me your code.
Hello, The tests I did were trying to login or fetch and shutting down internet connection. Then the library gets stuck there and does not give any errors. Sometimes after the connection is back the program continues.
from imap_tools import MailBox, AND
with MailBox('imap.mail.com').login('test@mail.com', 'pwd') as mailbox: for msg in mailbox.fetch(): print(msg.date, msg.subject, len(msg.text or msg.html))
It is as standard as it can be.
Thanks,
I have reproduce your scenario: And I immediately got trace:
Traceback (most recent call last):
File "C:\kvk\develop\Python\imap_tools\examples\check.py", line 872, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\kvk\develop\Python\imap_tools\examples\check.py", line 874, in
Process finished with exit code 1
===
What am I doing wrong?
Hello! When logging in or fetching mail the library hangs if the connection drops or in a slow connection. It does not give any errors. Just get stuck until the script gets reseted. I am using it like the example
Thanks for the help and for the library.