New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2.20 to 0.2.21

4

lib/mailparser.js

@@ -5,3 +5,3 @@

* @author <a href="mailto:andris@node.ee">Andris Reinman</a>
* @version 0.2.20
* @version 0.2.21
*/

@@ -1007,3 +1007,3 @@

replace(/\=\?[^?]+\?[QqBb]\?[^?]+\?=/g, (function(a){
return mimelib.decodeMimeWord(a);
return mimelib.decodeMimeWord(a.replace(/\s/g,''));
}).bind(this));

@@ -1010,0 +1010,0 @@ };

{
"name": "mailparser",
"description": "Asynchronous and non-blocking parser for mime encoded e-mail messages",
"version": "0.2.20",
"version": "0.2.21",
"author" : "Andris Reinman",

@@ -27,3 +27,3 @@ "maintainers":[

"dependencies": {
"mimelib": "0.1.14",
"mimelib": ">=0.1.14",
"iconv": "*"

@@ -34,4 +34,6 @@ },

},
"engines": ["node >=0.4.0"],
"engine": {
"node": ">=0.4"
},
"keywords": ["e-mail", "mime", "parser"]
}

@@ -533,2 +533,15 @@ var MailParser = require("../lib/mailparser").MailParser,

},
"Mime Words with invalid linebreaks (Sparrow)": function(test){
var encodedText = "Content-type: text/plain; charset=utf-8\r\n" +
"Subject: abc=?utf-8?Q?=C3=B6=C\r\n"+
" 3=B5=C3=BC?=",
mail = new Buffer(encodedText, "utf-8");
var mailparser = new MailParser();
mailparser.end(mail);
mailparser.on("end", function(mail){
test.equal(mail.subject, "abcöõü");
test.done();
});
},
"8bit Default charset": function(test){

@@ -535,0 +548,0 @@ var encodedText = "Content-type: text/plain\r\nContent-Transfer-Encoding: 8bit\r\n\r\nÕÄÖÜ",

Sorry, the diff of this file is not supported yet

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