futuRe office labs
2c

projects › small tools

MailQuery

LINKSGitHub · blog post

"Fluent" Python library for traversing and manipulating your mailbox.

For example, delete all the emails to or from john about the Jan Meeting.

Mailbox(client).involves("john@example.com").subject_contains("Jan Meeting").delete()