ikvk / imap_tools

Work with email by IMAP
Apache License 2.0
717 stars 83 forks source link

imaplib.abort: socket error: EOF on Mailbox().login()? #166

Closed nkuehnle closed 2 years ago

nkuehnle commented 2 years ago

I've been getting the following imaplib error and my script has stopped checking for new messages. Any idea why? It still sends email via SMTP just fine. The error is quite vague.

File "/home/pi/.local/lib/python3.7/site-packages/pipyawc/modules/operations/messaging.py", line 129, in check
    with MailBox(**mb_kwargs).login(**login_kwargs) as mailbox:
  File "/home/pi/.local/lib/python3.7/site-packages/imap_tools/mailbox.py", line 272, in __init__
    super().__init__()
  File "/home/pi/.local/lib/python3.7/site-packages/imap_tools/mailbox.py", line 34, in __init__
    self.box = self._get_mailbox_client()
  File "/home/pi/.local/lib/python3.7/site-packages/imap_tools/mailbox.py", line 279, in _get_mailbox_client
    client = imaplib.IMAP4(self._host, self._port)
  File "/usr/lib/python3.7/imaplib.py", line 201, in __init__
    self._connect()
  File "/usr/lib/python3.7/imaplib.py", line 243, in _connect
    self.welcome = self._get_response()
  File "/usr/lib/python3.7/imaplib.py", line 1047, in _get_response
    resp = self._get_line()
  File "/usr/lib/python3.7/imaplib.py", line 1151, in _get_line
    raise self.abort('socket error: EOF')
imaplib.abort: socket error: EOF
ikvk commented 2 years ago

Hello Where is details?

ikvk commented 2 years ago

https://stackoverflow.com/questions/7575943

nkuehnle commented 2 years ago

I missed th email notification on this reply, sorry. What other details would be helpful? I'm not particularly familiar with IMAP.

The linked issue seems different since I get this with a newly initialized instance every time I check the mail and it fails on the login step.

ikvk commented 2 years ago

Update lib