mailparser
Advanced tools
Comparing version 0.2.20 to 0.2.21
@@ -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
568749
3163
+ Addedaddressparser@1.0.1(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedmimelib@0.3.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
- Removedmimelib@0.1.14(transitive)
Updatedmimelib@>=0.1.14