Parse EML
AI-generatedOverview
This node parses EML (email) files to extract useful information such as sender, recipient, subject, and body content. It is useful in scenarios where you need to process raw email data, for example, extracting email details from stored EML files or email content received as input data.
Use Case Examples
- Extract sender, recipient, subject, and body from EML files stored as binary data in the workflow.
- Parse raw EML content provided as a string in JSON input to extract structured email information.
Properties
| Name | Meaning |
|---|---|
| Source | The property key from which to pull the EML data for parsing. Supports dot notation to access nested properties (e.g., 'user.key'). |
| Disable Dot Notation | Option to disable referencing child fields using dot notation in the source key property name. |
Output
JSON
json- Parsed email data including sender, recipient, subject, body, and other email metadata extracted from the EML content.
Dependencies
- mailparser library for parsing EML content
Troubleshooting
- If the source key does not exist or is incorrect, the node will fail to find the EML data to parse. Verify the source key and dot notation setting.
- If the input data is not a valid EML format or is corrupted, parsing will fail. Ensure the input data is a valid EML file or string.
- If binary data is referenced but not present or accessible, the node will error. Confirm the binary property exists and is correctly referenced.
Links
- mailparser Documentation - Official documentation for the mailparser library used to parse EML files.