Code: Select all
mail.select("INBOX")
result, messages = mail.search(None, '(AND ("UNSEEN") ("SUBJECT" "important") ("FROM" "[email protected]"))')
Code: Select all
imaplib.IMAP4.error: SEARCH command error: BAD [b'The specified message set is invalid.']
Derzeit verwende ich Folgendes:< /p>
Code: Select all
mail.search(None,'UNSEEN' ,'FROM','"[email protected]"')
Versionen:
- python==3.12.0
- imap-tools==1.7.4
Mobile version