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.23 to 0.2.24

2

lib/mailparser.js

@@ -581,2 +581,4 @@

value.charset = "windows-"+value.charset.substr(4);
}else if(value.charset == "ks_c_5601-1987"){
value.charset = "cp949";
}else if(value.charset.match(/^utf\d/)){

@@ -583,0 +585,0 @@ value.charset = "utf-"+value.charset.substr(3);

4

package.json
{
"name": "mailparser",
"description": "Asynchronous and non-blocking parser for mime encoded e-mail messages",
"version": "0.2.23",
"version": "0.2.24",
"author" : "Andris Reinman",

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

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

@@ -30,0 +30,0 @@ },

@@ -255,3 +255,23 @@ var MailParser = require("../lib/mailparser").MailParser,

});
},
"ks_c_5601-1987": function(test){
var encodedText = "Subject: =?ks_c_5601-1987?B?vcU=?=\r\n"+
"Content-Type: text/plain; charset=ks_c_5601-1987\r\n"+
"Content-Transfer-Encoding: base64\r\n"+
"\r\n"+
"vcU=",
mail = new Buffer(encodedText, "utf-8");
var mailparser = new MailParser();
mailparser.end(mail);
mailparser.on("end", function(mail){
test.equal(mail.subject, "신");
test.equal(mail.text.trim(), "신");
test.done();
});
}
};

@@ -258,0 +278,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