Socket
Socket
Sign inDemoInstall

smtp-connection

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smtp-connection - npm Package Compare versions

Comparing version 1.3.7 to 1.3.8

4

CHANGELOG.md
# Changelog
## v1.3.8 2015-12-29
* Do not use strict isEmail function, just check that there are no newlines in addresses. Fixes a regression with lax e-mail addresses.
## v1.3.7 2015-12-22

@@ -4,0 +8,0 @@

6

package.json
{
"name": "smtp-connection",
"version": "1.3.7",
"version": "1.3.8",
"description": "Connect to SMTP servers",

@@ -35,5 +35,3 @@ "main": "src/smtp-connection.js",

},
"dependencies": {
"isemail": "^1.2.0"
}
"dependencies": {}
}

@@ -11,3 +11,2 @@ 'use strict';

var DataStream = require('./data-stream');
var isemail = require('isemail');

@@ -571,8 +570,3 @@ module.exports = SMTPConnection;

if (this._envelope.from &&
isemail(this._envelope.from,
// isemail non smtp compatible error codes start from 17
{
errorLevel: 16
}) !== 0) {
if (this._envelope.from && /[\r\n<>]/.test(this._envelope.from)) {
return callback(this._formatError('Invalid sender ' + JSON.stringify(this._envelope.from), 'EENVELOPE'));

@@ -582,8 +576,3 @@ }

for (var i = 0, len = this._envelope.to.length; i < len; i++) {
if (!this._envelope.to[i] ||
isemail(this._envelope.to[i],
// isemail non smtp compatible error codes start from 17
{
errorLevel: 16
}) !== 0) {
if (!this._envelope.to[i] || /[\r\n<>]/.test(this._envelope.to[i])) {
return callback(this._formatError('Invalid recipient ' + JSON.stringify(this._envelope.to[i]), 'EENVELOPE'));

@@ -887,3 +876,3 @@ }

}.bind(this);
this._sendCommand(new Buffer(0));
this._sendCommand('');
return;

@@ -890,0 +879,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc