skillfed

mail-parser-reply

đź“§ Email reply parser library for Python with multi-language support

mail-parser-reply v1.36 379.3K downloads/30d#7,110 on PyPI84
Permissive license MIT AGING released

What it is and what it does

Mail Reply Parser is a Python library that extracts individual replies from email message bodies by recognizing multilingual headers and structural markers that different email clients insert when quoting or forwarding. It handles text-based emails in multiple languages and can return either the full reply text or a cleaned version with headers, signatures, and disclaimers stripped out.

The library is designed to solve the common problem of email threading: when users reply to or forward messages, mail clients add quoted text and metadata that clutters the actual reply content. Rather than treating an email as a single fragment, this parser splits it into distinct EmailReply objects, each with separate properties for raw content, cleaned body, and detected structural elements. It's a Python adaptation of GitHub's Ruby email_reply_parser, extended with multilingual support.

Use it for:

  • Extract the latest customer reply from a support ticket thread, discarding quoted history and signatures.
  • Parse incoming emails in a CRM or helpdesk system to isolate new message content from forwarded chains.
  • Process multilingual email archives to separate replies for analysis or indexing without quoted text noise.
  • Build email-to-task workflows that need only the new reply body, not the entire quoted conversation.
  • Clean email bodies for NLP or sentiment analysis by removing headers and disclaimers automatically.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Splits incoming email messages into separate replies by detecting multilingual headers, signatures, and disclaimers, extracting just the reply text or the full body as needed.

Yes, if you need to parse text-based emails and extract reply content reliably. The package has no dependencies, installs easily, and covers multiple languages. The aging maintenance status (last update 256 days ago) is a minor concern for a stable parsing library, but the lack of recent activity means new language support or edge-case fixes may be slow. No known vulnerabilities. Suitable for production use in email processing pipelines where multilingual support is valuable.

Install

mail-parser-reply on PyPI

pip

pip install mail-parser-reply

uv

uv add mail-parser-reply

poetry

poetry add mail-parser-reply

Installing mail-parser-reply

Before you install

Low friction: pure Python wheel with no runtime dependencies. Maintenance status is aging—last commit was 256 days ago—but the repository is not archived and has modest activity (84 stars).

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install mail-parser-reply

from mail_parser_reply import EmailReplyParser

languages = ['en', 'de']
parser = EmailReplyParser(languages=languages)
mail_message = parser.read(text='Your email body here')
for reply in mail_message.replies:
    print(reply.body)

Verify before relying

  • Whether untested language support (Czech, Spanish, Korean, Chinese) is production-ready or requires manual validation.
  • Exact Python version compatibility—requires_python is unspecified in the package metadata.
  • How many of the supported languages have been tested in production environments.

Package facts

License MIT (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance aging — 256 days since the last release
Last repo commit
First released
Downloads 379,252/month — #7,110 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: mail_parser_reply-1.36-py3-none-any.whl

Keywords: mail, email, parser

Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Software Development

Tags

email reply parsingsplit email threadsmultilingual email parserextract email repliesemail body extractionparse email headersremove email signatures
email-parsingmultilingualtext-extraction

More Software Development packages

typing-extensions

Provides backported and experimental type hints…

permissive · top 100 on PyPI

numpy

NumPy provides an N-dimensional array object…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

distlib

Distlib provides low-level packaging utilities…

permissive · top 1,000 on PyPI

email-reply-parser

Extracts the most recent reply from an email…

permissive · top 5,000 on PyPI

quotequail

Identifies and separates quoted text from…

permissive · top 15,000 on PyPI

mail-parser

Parses raw email messages into structured…

permissive · top 5,000 on PyPI

nameparser

Parses human names into seven structured…

copyleft · top 5,000 on PyPI

eml-parser

Parses EML (email) files and extracts…

agpl · top 15,000 on PyPI

email-validator

Validates email address syntax and optionally…

permissive · top 1,000 on PyPI

django-post_office

Django Post Office queues and sends emails…

permissive · top 15,000 on PyPI

commonregex

Extracts dates, times, emails, phone numbers,…

permissive · top 15,000 on PyPI

django-templated-mail

Sends Django emails using template files…

permissive · top 15,000 on PyPI

pywxdump

Extracts WeChat account metadata, decrypts chat…

permissive · top 15,000 on PyPI