Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

email-reply-parser

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-reply-parser - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

2

lib/parser/emailparser.js

@@ -28,3 +28,3 @@ var FragmentDTO = require("./fragmentdto");

/^\s*(Da\s?:.+\s?(\[|<).+(\]|>))/u, // "Da: NAME <EMAIL>" OR "Da : NAME <EMAIL>" OR "Da : NAME<EMAIL>" (With support whitespace before start and before <)
/^(20[0-9]{2}\-(?:0?[1-9]|1[012])\-(?:0?[0-9]|[1-2][0-9]|3[01]|[1-9])\s[0-2]?[0-9]:\d{2}\s.+?:)$'/m, // 20YY-MM-DD HH:II GMT+01:00 NAME <EMAIL>:
/^(20[0-9]{2}\-(?:0?[1-9]|1[012])\-(?:0?[0-9]|[1-2][0-9]|3[01]|[1-9])\s[0-2]?[0-9]:\d{2}\s.+?:).*<(.*)>'/m, // 20YY-MM-DD HH:II GMT+01:00 NAME <EMAIL>:
/^\s*([a-z]{3,4}\.\s[\s\S]+\sskrev\s[\s\S]+:)$/m, // DATE skrev NAME <EMAIL>:

@@ -31,0 +31,0 @@ /^([0-9]{2}).([0-9]{2}).(20[0-9]{2})(.*)(([0-9]{2}).([0-9]{2}))(.*)\"( *)<(.*)>( *):$/m, // DD.MM.20YY HH:II NAME <EMAIL>

{
"name": "email-reply-parser",
"version": "1.0.10",
"version": "1.0.11",
"description": "Node library for parsing plain text email content. Based on https://github.com/willdurand/EmailReplyParser",

@@ -5,0 +5,0 @@ "main": "lib/emailreplyparser.js",

# Email Reply Parser
[![Build Status](https://travis-ci.org/crisp-im/email-reply-parser.svg?branch=master)](https://travis-ci.org/crisp-im/email-reply-parser)
[![Build Status](https://travis-ci.org/crisp-im/email-reply-parser.svg?branch=master)](https://travis-ci.org/crisp-im/email-reply-parser) [![NPM](https://img.shields.io/npm/v/email-reply-parser.svg)](https://www.npmjs.com/package/email-reply-parser])
Node library for parsing plain text email content. Based on https://github.com/willdurand/EmailReplyParser
**Email Reply Parser is a library to parse plain-text email replies and extract content**
willdurand library is based on GitHub's [email_reply_parser](http://github.com/github/email_reply_parser)
library written in Ruby.
This library suppots most email replies, signatures and locales.
## Who uses it?
<table>
<tr>
<td align="center"><a href="https://crisp.chat/"><img src="https://crisp.chat/favicon-256x256.png" height="64" /></a></td>
</tr>
<tr>
<td align="center">Crisp</td>
</tr>
</table>
_👋 You use this library and you want to be listed there? [Contact us](https://crisp.chat/)._
## Installation
Install the project using NPM:
``` javascript
npm install --save email-reply-parser
```
## Usage
``` javascript

@@ -20,4 +41,23 @@ var EmailReplyParser = require("email-reply-parser");

## To run the tests
`npm test`
## 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:
``` javascript
npm test
```
## Credits
* GitHub
* William Durand <william.durand1@gmail.com>
* Crisp IM
## License
email-reply-parser is released under the MIT License. See the bundled LICENSE
file for details.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc