Actions13
Email → Download as EML
AI-generatedSummary
Retrieves a single email from an IMAP mailbox as its raw RFC822 string or binary data.
Inputs
- Mailbox (required) — Selects the mailbox to retrieve from. Can be selected via a list or entered as a full path.
- Email UID — UID of the specific email to download. Defaults to empty.
- Output to Binary Data — If true, outputs the email as binary data with a configurable filename. If false, outputs the email as a JSON string containing the raw EML content.
- Put Output File in Field (required) — The name of the binary field to store the downloaded email when outputting as binary data. Defaults to 'data'.
Output shape
One item per input item, containing either the raw EML string in a JSON field or binary data in the specified field.
The returned JSON includes the email UID. The binary data is formatted as 'message/rfc822'.
Examples
Example 1: Download a specific email from INBOX as a binary file named 'email.eml'
Mailbox: INBOX, Email UID: 1234, Output to Binary Data: true, Put Output File in Field: data
Example 2: Download a specific email and return its raw text content as a JSON string
Mailbox: INBOX, Email UID: 1234, Output to Binary Data: false