Skip to content

Commit

Permalink
VRFY bug - connection was dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
Andris Reinman committed Mar 26, 2012
1 parent 2ff4794 commit 0319280
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/server.js
@@ -1,7 +1,6 @@
/**
* @fileOverview This is the main file for the simplesmtp library to create custom SMTP servers
* @author <a href="mailto:andris@node.ee">Andris Reinman</a>
* @version 0.1.2
*/

var RAIServer = require("rai").RAIServer,
Expand Down Expand Up @@ -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":
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0319280

Please sign in to comment.