Comparing version 1.4.0 to 1.4.1
@@ -72,5 +72,5 @@ 'use strict'; | ||
this.decoder = node.getDecoder(); | ||
if(node.encoding){ | ||
if (!['base64', 'quoted-printable'].includes(node.encoding)) { | ||
this.encoder = node.getEncoder(); | ||
}else{ | ||
} else { | ||
this.encoder = node.getEncoder('quoted-printable'); | ||
@@ -77,0 +77,0 @@ } |
{ | ||
"name": "mailsplit", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Split email messages into an object stream", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -149,4 +149,4 @@ # mailsplit | ||
}); | ||
// pipe a message source to splitter, then joiner and finally to stdout | ||
someMessagStream.pipe(splitter).pipe(joiner).pipe(process.stdout); | ||
// pipe a message source to splitter, then rewriter, then joiner and finally to stdout | ||
someMessagStream.pipe(splitter).pipe(rewriter).pipe(joiner).pipe(process.stdout); | ||
``` | ||
@@ -153,0 +153,0 @@ |
37396