Permalink
Browse files

Better DKIM support

  • Loading branch information...
Andris Reinman
Andris Reinman committed Nov 30, 2012
1 parent d47d01b commit f7afa8c5d281d9db2e6c7483b04a8cf701ac3860
Showing with 2 additions and 21 deletions.
  1. +0 −19 lib/transport.js
  2. +2 −2 package.json
View
@@ -68,25 +68,6 @@ Transport.prototype.sendMailWithTransport = function(emailMessage, callback){
*/
Transport.prototype.useDKIM = function(dkim){
this.dkimOptions = dkim;
-
- // SES doesn't like Message-Id and Date fields in DKIM signed data
- if(this.dkimOptions && this.transportType == "SES"){
- if(!this.dkimOptions.headerFieldNames){
- this.dkimOptions.headerFieldNames = "From:Sender:Reply-To:Subject:To:" +
- "Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:" +
- "Content-Description:Resent-Date:Resent-From:Resent-Sender:" +
- "Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:" +
- "List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:" +
- "List-Owner:List-Archive";
- }else{
- // remove Message-Id and Date field names if present in the list
- this.dkimOptions.headerFieldNames = this.dkimOptions.headerFieldNames.
- replace(/\:\s*(Message-Id|Date)\s*\:/ig, ":").
- replace(/^\s*(Message-Id|Date)\s*\:/i, "").
- replace(/\:\s*(Message-Id|Date)\s*$/i, "").
- trim();
- }
- }
};
/**
View
@@ -1,7 +1,7 @@
{
"name": "nodemailer",
"description": "Easy to use module to send e-mails, supports unicode and SSL/TLS",
- "version": "0.3.34",
+ "version": "0.3.35",
"author" : "Andris Reinman",
"maintainers":[
{
@@ -25,7 +25,7 @@
}
],
"dependencies": {
- "mailcomposer": ">= 0.1.25",
+ "mailcomposer": ">= 0.1.27",
"simplesmtp": ">= 0.1.22",
"optimist": "*"
},

0 comments on commit f7afa8c

Please sign in to comment.