Parsing email raw content to structured data using mailparser
npm install @yudhaputrama/n8n-nodes-mailparserThis package provides an n8n node for parsing email data using the mailparser library. It can parse raw email content into structured data including headers, body content, and attachments.
``bash`
cd ~/.n8n/custom
npm install @yudhaputrama/n8n-nodes-mailparser
1. Go to Settings > Community Nodes
2. Click "Install" button
3. Enter package name: @yudhaputrama/n8n-nodes-mailparser`
4. Click "Install"
1. Add the MailParser node to your workflow
2. Connect it to a node that provides raw email data
3. Set the 'Email Field' to specify which input field contains the raw email
4. The node will parse the email and output structured data including:
- Subject
- From/To/CC/BCC
- Message body (HTML and text)
- Attachments
- Message ID and references
- Dates and headers
* n8n (version 1.0.0 or later)
* Node.js (version 20 or later)