Code: Select all
mail.select("INBOX")
result, messages = mail.search(None, '(AND ("UNSEEN") ("SUBJECT" "important") ("FROM" "abc.xyz@lkj.com"))')
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','"xxxx.yyy@zzz.ai"')
Versionen:
- python==3.12.0
- imap-tools==1.7.4