📧 Email reply parser library for Python with multi-language support
Low maintenance activity. Last release 12 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and issue handling.
Consider insteadquotequailPythie’s Index: 75300.8K downloads/moCompare →
pip install mail-parser-replyMail Reply Parser 📧🐍
Multi-language email reply parsing for international environments 🌍
Mail clients handle reply formatting differently, making reliable parsing difficult. Thank god we have standards. This library splits text-based emails into separate replies based on common headers produced by different, multilingual clients usually indicating separation.
Replies can either present the whole mail message body, or strip headers, signatures and common disclaimers if required. Currently supported languages are:
- Danish (
da) 🇩🇰 - Dutch (
nl) 🇳🇱 - English (
en) 🇬🇧 - French (
fr) 🇫🇷 - German (
de) 🇩🇪 - Italian (
it) 🇮🇹 - Japanese (
ja) 🇯🇵 - Polish (
pl) 🇵🇱 - Swedish (
sv) 🇸🇪 - Czech (
cs) 🇨🇿 (untested - contributions welcome!) - Spanish (
es) 🇪🇸 (untested - contributions welcome!) - Korean (
ko) 🇰🇷 (untested - contributions welcome!) - Chinese (
zh) 🇨🇳 (untested - contributions welcome!)
🏳️🌈 Adding more languages is quite easy!
This is an improved Python implementation of GitHub's Ruby-based email_reply_parser and an adaptation of Zapier's email-reply-parser which both split the mails in fragments instead of distinct replies. They also only support English.
⭐ Features
⭐ Easy to implement
⭐ Multilanguage Support
⭐ Text-based mail parsing
⭐ Detect headers, signatures and disclaimers
⭐ Fully type annotated
⭐ Easy-to-read code and well-tested
Overview 🔭
This library makes it easy to split an incoming mail into replies, making working with emails much more manageable and easily providing the text content for each reply – with or without signatures, disclaimers and headers.
