Skill Detail

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.

Calendar, Email & ProductivityMulti-Framework
Calendar, Email & Productivity Multi-Framework Security Reviewed
⭐ 1.7k GitHub stars ⬇ 13.7M/wk npm
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill extract-structured-data-and-attachments-from-raw-email-mailparser Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
Node.js
Install & setup
npm install mailparser
Author
Andris Reinman
Last updated
Apr 10, 2026
Quick brief

Tool used: MailParser from the Nodemailer project (nodemailer/mailparser).

How it works

What this skill actually does

This skill gives an agent a clear job: take a raw email message, parse it into structured fields, and hand the result to downstream automation. That means extracting sender and recipient metadata, subject, timestamps, plain text, HTML bodies, inline references, and attachments in a form another workflow can trust. The agent behavior is practical: normalize messy inbound email into data that can be indexed, summarized, classified, stored, or routed.

Invoke this skill when the input is an actual raw message source such as an .eml file, a webhook payload containing MIME content, a forwarded support message, or a mailbox export that needs machine processing. This is the moment when β€œjust open the email app” stops being enough. A user uses the product normally to read or send mail. An agent uses this skill when the job is to convert transport-level email data into structured artifacts for another system.

The scope boundary is what keeps this entry out of generic SDK territory. MailParser does not send email, manage campaigns, sync inboxes, or replace an email provider. It parses raw messages. That bounded behavior makes it a real skill-shaped building block for ticket ingestion, attachment extraction, compliance archiving, lead intake, and mailbox-to-database pipelines. Integration points include SMTP capture tools, inbound email webhooks, help desk ingestion flows, storage systems, and LLM summarization or classification steps that depend on clean message structure first.