Permalink
Browse files

`generateBody()` dont encode quoted-printable, if encoding is not quo…

…ted-printable
  • Loading branch information...
1 parent fbe7a7d commit 67ea3f39b4439e3dde926f6e5d51ec8aea248dba @hokaccha hokaccha committed Sep 2, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/mail.js
View
@@ -275,7 +275,11 @@ EmailMessage.prototype.generateHeaders = function(){
EmailMessage.prototype.generateBody = function(){
if(!this.content_multipart){
- return this.body && mimelib.encodeQuotedPrintable(this.body) || "";
+ if(this.encoding == "quoted-printable"){
+ return this.body && mimelib.encodeQuotedPrintable(this.body) || "";
+ }else{
+ return this.body;
+ }
}
var body_boundary = this.content_mixed?

0 comments on commit 67ea3f3

Please sign in to comment.