1.9.4 • Published 4 months ago

email-reply-parser v1.9.4

Weekly downloads
1,731
License
MIT
Repository
github
Last release
4 months ago

Email Reply Parser

Test and Build Build and Release NPM Downloads

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

Who uses it?

👋 You use this library and you want to be listed there? Contact us.

Installation

Install the project using NPM:

npm install --save email-reply-parser

RE2 Support

By 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.

Features

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

Usage

var EmailReplyParser = require("email-reply-parser");

var email =  new EmailReplyParser().read(MY_EMAIL_STRING);

console.log(email.getVisibleText());

Contributing

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

Credits

License

email-reply-parser is released under the MIT License. See the bundled LICENSE file for details.

1.9.4

4 months ago

1.9.3

4 months ago

1.9.1

5 months ago

1.9.0

5 months ago

1.9.2

5 months ago

1.8.2

7 months ago

1.8.1

8 months ago

1.8.0

11 months ago

1.7.1

11 months ago

1.7.0

11 months ago

1.6.1

11 months ago

1.6.0

1 year ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.4.2

2 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

5 years ago

1.2.2

6 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago