Permalink
Browse files

Merge pull request #43 from hokaccha/master

`generateBody()` dosen't encode quoted-printable, if encoding is not quoted-printable
  • Loading branch information...
2 parents fbe7a7d + 67ea3f3 commit a4f6bff6e78135d563f0e2fbe2da11e0f01af88a @andris9 andris9 committed Sep 12, 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 a4f6bff

Please sign in to comment.