Actions13
Email → Download Attachment
AI-generatedSummary
Downloads one or more email attachments as binary data and returns metadata for each.
Inputs
- mailboxPath (required) — Select the mailbox containing the email to download.
- emailUid — UID of the email to download.
- allAttachments — Whether to download all attachments (ignores Part IDs).
- partId (required) — Comma-separated list of attachment part IDs to download (only used if All Attachments is false).
- includeInlineAttachments — Whether to include inline attachments when downloading all attachments.
Output shape
A list of items, where each item contains a JSON object with an 'attachments' array and binary data for each downloaded file.
Binary field names are auto-generated (e.g., attachment_0, attachment_1). The JSON includes metadata like partId, filename, and contentType for each attachment.
Examples
Example 1: Download a specific attachment by part ID.
Mailbox: INBOX, Email UID: 123, Part ID: 1
Example 2: Download all attachments from an email.
Mailbox: INBOX, Email UID: 123, All Attachments: true
Example 3: Download all attachments including inline images.
Mailbox: INBOX, Email UID: 123, All Attachments: true, Include Inline Attachments: true