mailparser
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -1287,4 +1287,4 @@ "use strict"; | ||
return value. | ||
replace(/(=\?[^?]+\?[QqBb]\?[^?]+\?=)\s+(?==\?[^?]+\?[QqBb]\?[^?]+\?=)/g, "$1"). // join mimeWords | ||
replace(/\=\?[^?]+\?[QqBb]\?[^?]+\?=/g, (function(a) { | ||
replace(/(=\?[^?]+\?[QqBb]\?[^?]*\?=)\s+(?==\?[^?]+\?[QqBb]\?[^?]*\?=)/g, "$1"). // join mimeWords | ||
replace(/\=\?[^?]+\?[QqBb]\?[^?]*\?=/g, (function(a) { | ||
return mimelib.decodeMimeWord(a.replace(/\s/g, '')); | ||
@@ -1291,0 +1291,0 @@ }).bind(this)); |
{ | ||
"name": "mailparser", | ||
"description": "Asynchronous and non-blocking parser for mime encoded e-mail messages", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"author": "Andris Reinman", | ||
@@ -27,3 +27,3 @@ "maintainers": [ | ||
"dependencies": { | ||
"mimelib": ">=0.2.6", | ||
"mimelib": ">=0.2.17", | ||
"encoding": ">=0.1.4", | ||
@@ -30,0 +30,0 @@ "mime": "*", |
MailParser | ||
========== | ||
[![Build Status](https://secure.travis-ci.org/andris9/mailparser.png)](http://travis-ci.org/andris9/mailparser) | ||
[![NPM version](https://badge.fury.io/js/mailparser.png)](http://badge.fury.io/js/mailparser) | ||
[![Build Status](https://api.travis-ci.org/andris9/mailparser.svg)](http://travis-ci.org/andris9/mailparser) | ||
[![NPM version](https://badge.fury.io/js/mailparser.svg)](http://badge.fury.io/js/mailparser) | ||
@@ -7,0 +7,0 @@ **MailParser** is an asynchronous and non-blocking parser for |
@@ -371,2 +371,4 @@ var MailParser = require("../lib/mailparser").MailParser, | ||
var encodedText = "Content-type: text/plain; charset=utf-8\r\n" + | ||
"From: =?utf-8?q??= <sender@email.com>\r\n" + | ||
"To: =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= <to@email.com>\r\n" + | ||
"Subject: =?iso-8859-1?Q?Avaldu?= =?iso-8859-1?Q?s_lepingu_?=\r\n =?iso-8859-1?Q?l=F5petamise?= =?iso-8859-1?Q?ks?=\r\n", | ||
@@ -379,2 +381,4 @@ mail = new Buffer(encodedText, "utf-8"); | ||
test.equal(mail.subject, "Avaldus lepingu lõpetamiseks"); | ||
test.equal(mail.from[0].name, ""); | ||
test.equal(mail.to[0].name, "Keld Jørn Simonsen"); | ||
test.done(); | ||
@@ -381,0 +385,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135971
2960
Updatedmimelib@>=0.2.17