From 0319280fa0632eaf7c77240d63c718b038bb747f Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Mon, 26 Mar 2012 17:17:01 +0300 Subject: [PATCH] VRFY bug - connection was dropped --- lib/server.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/server.js b/lib/server.js index e4a5cb4..7fd02f7 100644 --- a/lib/server.js +++ b/lib/server.js @@ -1,7 +1,6 @@ /** * @fileOverview This is the main file for the simplesmtp library to create custom SMTP servers * @author Andris Reinman - * @version 0.1.2 */ var RAIServer = require("rai").RAIServer, @@ -219,7 +218,7 @@ SMTPServerConnection.prototype._onCommand = function(command, payload){ return; } - switch((command || "").toString().trim().toUpperCase()){ + switch((command || "").toString().trim().toUpperCase()){ // Should not occur too often case "HELO": @@ -247,7 +246,7 @@ SMTPServerConnection.prototype._onCommand = function(command, payload){ // Doesn't work for spam related purposes case "VRFY": - this.end("252 2.1.5 Send some mail, I'll try my best"); + this.client.send("252 2.1.5 Send some mail, I'll try my best"); break; // Initiate an e-mail by defining a sender