smtp-connection
Advanced tools
Comparing version 1.3.5 to 1.3.6
# Changelog | ||
## v1.3.6 2015-12-19 | ||
* Updated isemail configuration to only allow SMTP compatible e-mail addresses for the envelope (otherwise valid addresses might include symbols that don't play well with SMTP, eg. line folding inside quoted strings) | ||
## v1.3.5 2015-12-19 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "smtp-connection", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "Connect to SMTP servers", | ||
@@ -5,0 +5,0 @@ "main": "src/smtp-connection.js", |
@@ -565,3 +565,8 @@ 'use strict'; | ||
if (this._envelope.from && !isemail(this._envelope.from)) { | ||
if (this._envelope.from && | ||
isemail(this._envelope.from, | ||
// isemail non smtp compatible error codes start from 17 | ||
{ | ||
errorLevel: 16 | ||
}) !== 0) { | ||
return callback(this._formatError('Invalid sender ' + JSON.stringify(this._envelope.from), 'EENVELOPE')); | ||
@@ -571,3 +576,8 @@ } | ||
for (var i = 0, len = this._envelope.to.length; i < len; i++) { | ||
if (!this._envelope.to[i] || !isemail(this._envelope.to[i])) { | ||
if (!this._envelope.to[i] || | ||
isemail(this._envelope.to[i], | ||
// isemail non smtp compatible error codes start from 17 | ||
{ | ||
errorLevel: 16 | ||
}) !== 0) { | ||
return callback(this._formatError('Invalid recipient ' + JSON.stringify(this._envelope.to[i]), 'EENVELOPE')); | ||
@@ -574,0 +584,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43902
987