Skip to content

Parse EML Node Documentation

Overview

The Parse EML node opens .eml email files and extracts their attachments. Use it when an email reaches your workflow as a file, for example an email forwarded as an attachment, and you need the documents inside it. Pass the extracted attachments to an OCR, AI or Send email node to read or forward them.

Configuration

Required Fields

  • Source: URLs of the .eml files to parse, separated by spaces. Use the flow history button to insert a value from an earlier node. The files are downloaded the same way as in the OCR node

Optional Fields

  • Attachment types: File extensions to keep, separated by spaces, for example pdf docx. Defaults to pdf. Leave it empty to keep every attachment. See Attachment types

Advanced Configuration

  • JSON Configuration: Direct JSON editing of the node configuration

Attachment types

  • Case and a leading dot don't matter: pdf, PDF and .pdf are the same
  • An attachment is kept when its file extension matches, or when its content type is the one of that extension. For example jpg also keeps .jpeg images, and pdf keeps a PDF whose name has no extension
  • Separate types with spaces. pdf,docx matches nothing
  • Enter extensions, not content types. application/pdf matches nothing

Images embedded in the email body, such as logos and signatures, are never extracted, even when the field is empty.

When an email has another email attached, the attachments of the attached email are extracted too, up to 5 levels deep. The attached .eml itself is not part of the output.

Output

The node result has one field, attachments: a list of download links, one per extracted attachment. The list follows the order of the Source URLs, then the order of the attachments in each email.

{
  "attachments": [
    "https://...invoice.pdf?...",
    "https://...delivery_note.pdf?..."
  ]
}

To use it in a later node, open the flow history and pick attachments under the Parse EML node. In a text field the list is inserted as links separated by spaces, which is the format OCR, AI and Send email nodes read their files from.

If no attachment matches, the list is empty and the workflow continues.

File names keep letters, digits, dots, dashes and underscores. Other characters are replaced with _, so Rechnung_Mueller (1).pdf becomes Rechnung_Mueller__1_.pdf.

The links are signed and valid for 30 minutes. Anyone who has a link can download the file during that time.

  • Knots nodes: OCR, AI, Send email and Parse EML nodes open the files directly, so the 30 minutes don't apply to them
  • Third parties: a link sent to another system, for example in an HTTP Request node, stops working after 30 minutes. The receiving system must download the file within that time

Retention

Extracted files are deleted after 3 days. Nodes that run later than that can no longer read them.

Warning

Attachments are not scanned for malware. Treat them like any attachment from an unknown sender before you pass them on to other systems or people.

Limits

  • 25 MB per .eml file
  • 50 attachments per node run, counted across all Source files after the Attachment types filter

Going over a limit fails the node. If an email holds many files, narrow Attachment types to stay under 50.

Not supported

  • Outlook .msg files: only .eml files can be parsed. A .msg file, or any other file, as Source does not fail the node, it returns an empty attachments list
  • winmail.dat (TNEF): the files inside are not extracted. winmail.dat itself is kept only when Attachment types is empty or contains dat
  • S/MIME: encrypted emails are not decrypted and signatures are not verified

Example: read a PDF from an email with OCR

Start -> Parse EML -> OCR -> End

The start event receives the URL of the .eml file, here as attachmentURLs. Parse EML extracts the PDFs:

{
  "fileUrl": "{{FLOW_HISTORY.Node_startEvent.result.attachmentURLs}}",
  "attachmentTypes": "pdf"
}

OCR reads the extracted PDFs:

{
  "fileUrl": "{{FLOW_HISTORY.Node_parseEml_1.result.attachments}}",
  "provider": "aws",
  "firstPageOnly": true
}

The OCR node returns the text of all PDFs as one string. If the email has no PDF, the OCR result is empty.

Troubleshooting

Error Cause
Cannot fetch the eml file: <url> The URL can't be reached or is not allowed
Cannot fetch the eml file: <url> responded with <status> The server answered with an error, for example 403 or 404
The eml file is larger than the 25 MB limit: <url> The file is over 25 MB
Cannot parse the eml file: <url> The file is not a valid email
The eml files hold more than 50 matching attachments Narrow Attachment types, or split the files over several nodes

If attachments is empty without an error, check that Attachment types is separated by spaces, that Source is not empty, and that it points to an .eml file and not a .msg file.