1

I'm using imap_tools package to download attachments from my mail. To search for emails that I want to be included I use the function as described in documentation.

messages = mb.fetch(criteria=AND(seen=False, from_="[email protected]"), mark_seen=True, bulk=True)

How can I use expression matching in that case to find any mail from @test.com domain? I mean something like below but working:

messages = mb.fetch(criteria=AND(seen=False, from_="\[email protected]"), mark_seen=True, bulk=True)

1 Answer 1

1
AND(from_="@test.com")
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.