# Strip quoted email history and signatures before summarizing inbound replies

> Uses mail-parser-reply to isolate the newest human reply from text email threads while removing quoted history, signatures, and common disclaimers. This is useful when an agent needs the actionable part of an inbound email before routing, summarizing, or creating follow-up tasks.

- Skill: `agentskillexchange/strip-quoted-email-history-and-signatures-before-summarizing` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/strip-quoted-email-history-and-signatures-before-summarizing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/strip-quoted-email-history-and-signatures-before-summarizing/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/strip-quoted-email-history-and-signatures-before-summarizing

---


# Strip quoted email history and signatures before summarizing inbound replies

Uses mail-parser-reply to isolate the newest human reply from text email threads while removing quoted history, signatures, and common disclaimers. This is useful when an agent needs the actionable part of an inbound email before routing, summarizing, or creating follow-up tasks.

## Prerequisites

Python and a mail ingestion source such as IMAP, Gmail API, Graph API, or a helpdesk webhook

## Installation

Use the upstream install or setup path that matches your environment:
- pip install mail-parser-reply

Requirements and caveats from upstream:
- [![Python](https://img.shields.io/badge/Made%20with-Python%203.x-blue.svg?style=flat-square&logo=Python&logoColor=white)](https://www.python.org/)
- This is an improved Python implementation of GitHub's Ruby-based [email_reply_parser](https://github.com/github/email_reply_parser/)
- python -m unittest discover test

Basic usage or getting-started notes:
- For example, it can turn the following email:
- It should run much faster now. Can you double-check?
- bash

- Source: https://github.com/alfonsrv/mail-parser-reply
- Extracted from upstream docs: https://raw.githubusercontent.com/alfonsrv/mail-parser-reply/HEAD/README.md

## Documentation

- https://github.com/alfonsrv/mail-parser-reply#readme

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/strip-quoted-email-history-and-signatures-before-summarizing-inbound-replies/)

