Extract structured data and attachments from raw email with MailParser
Use MailParser when an agent receives raw RFC822 or MIME email and needs a normalized result with headers, text, HTML, addresses, and attachments. This is for email ingestion and handoff workflows, not for acting as a mailbox client or delivery platform.
What it does
Extract structured data and attachments from raw email with MailParser
Use MailParser when an agent receives raw RFC822 or MIME email and needs a normalized result with headers, text, HTML, addresses, and attachments. This is for email ingestion and handoff workflows, not for acting as a mailbox client or delivery platform.
Prerequisites
Node.js
Installation
Use the upstream install or setup path that matches your environment:
- $ npm install mailparser
Requirements and caveats from upstream:
- Advanced email parser for Node.js. Everything is handled as a stream which should make it able to parse even very large messages (100MB+) with relatively low overhead.
- const mailparser = require('mailparser');
Basic usage or getting-started notes:
-
This module is in maintenance mode. It will continue to receive security updates and critical bug fixes, but no new features or feature changes will be added. For new projects, please consider using [PostalMime](https...
-
First install the module from npm:
-
next import the mailparser object into your script:
-
Extracted from upstream docs: https://raw.githubusercontent.com/nodemailer/mailparser/HEAD/README.md
Documentation
Source
Capabilities
Install
Quality
deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,445 chars)