Skip to main content

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.

Command in the Email toolkit · id ooa.email/list · 15 inputs, 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
FolderStringNoINBOXMail folder; several separated by ; and * for any text, e.g. INBOX; Invoices/*.
Unread onlyBooleanNofalseOlder steps: only unread emails. New steps choose the status instead.
From containsStringNoSender contains this text; separate several with ; to match any of them.
Subject containsStringNoSubject contains this text; in double quotes ("Invoice 7") the whole subject must be exactly that; separate several with ; to match any of them.
SinceDateTimeNoReceived on or after this date.
Maximum resultsNumberNo100Maximum emails returned; 0 = no limit.
BeforeDateTimeNoReceived before this date.
Read onlyBooleanNofalseOlder steps: only emails already read. New steps choose the status instead.
To containsStringNoA To recipient contains this text.
Body containsStringNoThe body contains this text (searched by the server).
Has attachments onlyBooleanNofalseOnly emails that have attachments.
Oldest firstBooleanNofalseReturn the oldest emails first instead of the newest.
SessionStringNomailSession name.
StatusStringNoanyWhich emails: any, only unread or only read.
Local timeBooleanNofalseGive dates (and read since and before) in this computer's time zone instead of UTC.

Outputs​

OutputTypeWhat it is
tableTableColumns: id, from, subject, received, unread, has_attachments, cc, sent, attachment_count, folder.
countNumberNumber of emails.