Email Reply Parser is a node library to parse plain-text email replies and extract content
This library supports most email replies, signatures and locales.
๐ Maintainer: @baptistejamin
| Crisp | 
๐ You use this library and you want to be listed there? Contact us.
Install the project using NPM:
npm install --save email-reply-parserBy default, the library relies on the RE2 regex engine, which provides better performance and avoids issues like ReDOS. By default, RE2 will be installed as a peer dependency.
If you want to explicitly exclude RE2, then npm uninstall re2.
This library is used at Crisp everyday with around 1 million inbound emails. Over the years, we improved this library so it can work with most emails.
- Strip email replies like 
On DATE, NAME <EMAIL> wrote: - Supports around 10 locales, including English, French, Spanish, Portuguese, Italian, Japanese, Chinese.
 - Removes signatures like 
Sent from my iPhone - Removes signatures like 
Best wishes 
var EmailReplyParser = require("email-reply-parser");
var email =  new EmailReplyParser().read(MY_EMAIL_STRING);
console.log(email.getVisibleText());Feel free to fork this project and submit fixes. We may adapt your code to fit the codebase.
You can run unit tests using:
npm test- GitHub
 - William Durand [email protected]
 - Crisp IM
 
email-reply-parser is released under the MIT License. See the bundled LICENSE file for details.