awangga / outlook

Python library to read email from live, hotmail, outlook, office365 or any microsoft email service
347 stars 135 forks source link

imaplib.error: FETCH command error: BAD [b'Command Argument Error. 11'] #42

Open neeldhall opened 1 year ago

neeldhall commented 1 year ago

Traceback (most recent call last): File "/Users/-/Desktop/hotmailforwarder/forwarder.py", line 14, in print(mail.unread()) File "/Users/-/Desktop/hotmailforwarder/outlook.py", line 156, in unread return self.getEmail(latest_id) File "/Users/-/Desktop/hotmailforwarder/outlook.py", line 148, in getEmail r, d = self.imap.fetch(id,'(RFC822)') File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/imaplib.py", line 539, in fetch typ, dat = self._simple_command(name, message_set, message_parts) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/imaplib.py", line 1205, in _simple_command return self._command_complete(name, self._command(name, *args)) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/imaplib.py", line 1030, in _command_complete raise self.error('%s command error: %s %s' % (name, typ, data)) imaplib.error: FETCH command error: BAD [b'Command Argument Error. 11']