IMAPLIB for python3.11 has a error: imaplib.IMAP4.error: SEARCH command error: BAD [b'invalid command or parameters'] #122638
Unanswered
JerKei
asked this question in
Programming Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
I'm using the imaplib library in Python3.11 to retrieve emails from my Alibaba mailbox. After logging in using IMAP4_SSL and attempting to search and filter emails using the search method, I encountered an error. Following the usage of the search method in the IMAP4 class, like search(None, 'FROM', '"LDJ"') or search(None, '(FROM "LDJ")'), I received the following error message: imaplib.IMAP4.error: SEARCH command error: BAD [b'invalid command or parameters']. Even after debugging the code, I couldn't pinpoint the exact issue. Could you please provide guidance on the correct usage or help analyze the root cause of the error? Any assistance would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions