mailparser
Advanced tools
Comparing version 0.2.23 to 0.2.24
@@ -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); |
{ | ||
"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 @@ |
603665
3315
Updatedmimelib@>=0.1.15