Save all attachments
Save the attachments of every email in one or more folders that matches the filters, optionally marking those emails as read.
Command in the Email toolkit · id ooa.email/save_all_attachments · 12 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Target folder | File | Yes | Folder to save into. | |
| Name pattern | String | No | * | Only names matching this pattern, e.g. *.pdf. |
| 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. | |
| Before | DateTime | No | Received before this date. | |
| Overwrite | Boolean | No | false | Replace files of the same name instead of adding a number such as (2). |
| Mark read | Boolean | No | false | Mark each matching email as read afterwards (IMAP only); otherwise read status stays as it was. |
| Session | String | No | mail | Session name of the open mailbox. |
| Status | String | No | any | Which emails: any, only unread or only read. |
Outputs
| Output | Type | What it is |
|---|---|---|
| files | List | Saved file paths. |
| email_count | Number | Number of emails that matched. |