So first of all this is my code:
with MailBox('imap.gmail.com').login('username', 'password', 'INBOX') as mailbox:
for msg in mailbox.fetch(AND(mark_seen=False, from_="some_domain")):
prt_msg_text = msg.text
if 'some_text' in prt_msg_text:
*here I want to mark the email as seen, if a specific text is in the msg*
So I want to read the email first without marking it as seen and if a specific condition is true, I want to mark this specific email as seen. Is that possible to do?