inbound-processing

Parse inbound email webhooks from Postmark, SendGrid, Mailgun, and AWS SES.

2|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/chunkydotdev/email-skills --skill inbound-processing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: inbound-processing
Source: https://github.com/chunkydotdev/email-skills/tree/main/skills/inbound/inbound-processing
Command: npx skills add https://github.com/chunkydotdev/email-skills --skill inbound-processing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the complexity of building reliable, secure inbound email processing systems, removing the need to manually implement MIME parsing, webhook integration, spam and injection filtering, and message routing for incoming emails.

Core Features & Use Cases

  • Multi-provider webhook support: Natively handles payloads from Postmark, SendGrid, Mailgun, and AWS SES with provider-specific parsing and retry logic.
  • MIME & content processing: Parses multipart messages, extracts attachments and inline images, strips quoted reply text, and converts HTML email to clean plain text.
  • Security & intelligent routing: Includes weighted spam scoring, prompt injection detection for AI agent mailboxes, thread detection via email headers, and intent-based routing to support, billing, or legal queues.
  • Use Case: For a customer support platform, use this skill to automatically parse inbound support requests, strip out quoted conversation history, detect high-priority issues, and route them to the correct support tier within 30 seconds of receipt.

Quick Start

Use the inbound-processing skill to set up a webhook endpoint that parses incoming Postmark inbound payloads, extracts the new message content by stripping quoted replies, and routes support requests to your ticketing system.

Frequently Asked Questions about inbound-processing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse inbound email webhooks from Postmark, SendGrid, Mailgun, and AWS SES?

Inbound email webhooks from Postmark, SendGrid, Mailgun, and AWS SES are parsed using provider-specific logic that extracts content, handles retries, and processes payloads into a standardized format for routing.

What is the best way to detect email threads and strip quoted replies from incoming messages?

Email thread detection and quoted reply stripping are handled by parsing MIME message headers and content, isolating the new message text while removing previous conversation history for clean processing.

How do I filter spam and prompt injection attempts in incoming email payloads?

Spam and prompt injection filtering for inbound email applies weighted spam scoring and injection detection mechanisms to sanitize content before routing messages to AI agents or business queues.

Can I route inbound support emails to specific queues based on message intent?

Intent-based routing allows inbound emails to be directed to specific business queues such as support, billing, or legal by analyzing the parsed message content and classifying the underlying request intent.

How do you extract attachments and inline images from multipart MIME messages?

Multipart MIME messages are processed to extract attachments and inline images by parsing the email payload structure, converting HTML to plain text, and securely isolating media components.