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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Folder | String | No | INBOX | Mail folder; several separated by ; and * for any text, e.g. INBOX; Invoices/*. |
| Unread only | Boolean | No | false | Older steps: only unread emails. New steps choose the status instead. |
| From contains | String | No | Sender contains this text; separate several with ; to match any of them. | |
| Subject contains | String | No | Subject contains this text; in double quotes ("Invoice 7") the whole subject must be exactly that; separate several with ; to match any of them. | |
| Since | DateTime | No | Received on or after this date. | |
| Maximum results | Number | No | 100 | Maximum emails returned; 0 = no limit. |
| Before | DateTime | No | Received before this date. | |
| Read only | Boolean | No | false | Older steps: only emails already read. New steps choose the status instead. |
| To contains | String | No | A To recipient contains this text. | |
| Body contains | String | No | The body contains this text (searched by the server). | |
| Has attachments only | Boolean | No | false | Only emails that have attachments. |
| Oldest first | Boolean | No | false | Return the oldest emails first instead of the newest. |
| Session | String | No | mail | Session name. |
| Status | String | No | any | Which emails: any, only unread or only read. |
| Local time | Boolean | No | false | Give dates (and read since and before) in this computer's time zone instead of UTC. |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | Columns: id, from, subject, received, unread, has_attachments, cc, sent, attachment_count, folder. |
| count | Number | Number of emails. |