Save attachments
Save an email's attachments to a folder, optionally only names matching a pattern such as *.pdf.
Command in the Email toolkit · id ooa.email/save_attachments · 8 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| ID | Number | No | Email id from Find emails; empty inside an Each email loop = the loop's current email. | |
| 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. |
| Overwrite | Boolean | No | false | Replace files of the same name instead of adding a number such as (2). |
| Include inline | Boolean | No | true | Also save images embedded in the body, such as signature logos. |
| Session | String | No | mail | Session name. |
| Mark read | Boolean | No | false | Mark the email read afterwards (IMAP only); otherwise its read status stays as it was. |
Outputs
| Output | Type | What it is |
|---|---|---|
| files | List | Saved file paths. |