Actions19
- Email Actions
- Mailbox Actions
- Download Actions
Download → Download Attachments
AI-generatedSummary
Download attachments from a specific email message in an IMAP mailbox, optionally filtering attachments by filename substring, MIME type, and maximum size.
Inputs
- Mailbox / Folder (required) — Specify the IMAP folder path containing the email (e.g., INBOX, Sent, Archive/2026, [Gmail]/All Mail).
- UID (required) — The unique identifier (UID) of the email message within the specified mailbox to download attachments from.
- Attachment Filter — Optional filters to limit which attachments to download based on filename contains substring (case-insensitive), MIME type (full or wildcard), and maximum attachment size in MB. Set Max Attachment Size (MB) to 0 to disable size filtering.
Output shape
a single record per input item
The output JSON includes the email's UID, subject, sender information, attachment count, and metadata for each matching attachment (filename, content type, size, and binary property key). If attachments are included as binary, each attachment's content is available in the binary output keyed by unique attachment keys like 'attachment_0'. If no matching attachments are found, the binary output is omitted.
Examples
Example 1: Download all PDF attachments smaller than 10 MB from a specific email in the INBOX folder.
Set Mailbox / Folder to 'INBOX', UID to the email's UID, and Attachment Filter to MIME Type 'application/pdf' with Max Attachment Size (MB) set to 10.