delete_emails.py issues with "fetch"
MankanManche opened this issue · 0 comments
MankanManche commented
Getting this error,
Traceback (most recent call last):
File "C:\Python\test12.py", line 34, in
_, msg = imap.fetch(mail, "(RFC822)")
File "C:\Python39\lib\imaplib.py", line 548, in fetch
typ, dat = self._simple_command(name, message_set, message_parts)
File "C:\Python39\lib\imaplib.py", line 1230, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "C:\Python39\lib\imaplib.py", line 1055, in _command_complete
raise self.error('%s command error: %s %s' % (name, typ, data))
imaplib.error: FETCH command error: BAD [b'Could not parse command']
Any ideas?