20 commands. Toolkit id ooa.email.
| Command | What it does |
|---|---|
| Check folder exists | Check whether a mail folder exists in the open mailbox. |
| Connect to mailbox | Sign in to a mailbox over IMAP or POP3 as a named session, optionally opening a shared mailbox. |
| Delete all matching emails | Delete every email in one or more folders that matches the filters (all emails when no filter is set). |
| Delete email | Delete an email (moved to Trash/Deleted Items when that folder exists), or delete it for good. |
| Disconnect | Close the mailbox session. |
| Each email in a mailbox | Yield each email matching the Find emails filters as a dictionary: id, from, subject, received, unread, has_attachments, cc, sent, attachment_count, folder. |
| Find emails | List emails in one or more folders, newest first, filtered by read status, sender, subject and date; loop over the table to process them. |
| Forward email | Forward an email from the open mailbox with a note, either inline with its attachments or attached as an .eml file. |
| Get folders | List all mail folders. |
| Mark read or unread | Mark an email as read or unread, and optionally set or clear its follow-up flag. |
| Move all matching emails | Move every email in one or more folders that matches the filters to another folder. |
| Move email | Move an email to another folder, e.g. Processed. |
| Read email | Read one email: sender, recipients, subject, text, HTML and attachment names. |
| Reply to all | Reply to the sender and all other recipients of an email, keeping it in the same conversation and quoting the original. |
| Reply to email | Reply to the sender of an email in the open mailbox, keeping it in the same conversation and quoting the original. |
| Save all attachments | Save the attachments of every email in one or more folders that matches the filters, optionally marking those emails as read. |
| Save attachments | Save an email's attachments to a folder, optionally only names matching a pattern such as *.pdf. |
| Save email as .eml | Save a complete email, with attachments, as an .eml file that mail programs can open. |
| Save email as .msg | Save an email, with its recipients, HTML body and attachments, as an Outlook .msg file. |
| Send email | Send an email (plain text or HTML) with optional CC, BCC and attachments through an SMTP server. |