Skip to main content

Email

20 commands. Toolkit id ooa.email.

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