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

mailparser

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailparser - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

4

lib/mailparser.js

@@ -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 @@ });

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