Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:andris9/simplesmtp

  • Loading branch information...
commit 2340138d78edaf238c1b8d0abde0b0c4d40e19ac 2 parents 4a2351c + e8afdaa
@andris9 authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 lib/server.js
View
12 lib/server.js
@@ -301,6 +301,11 @@ SMTPServerConnection.prototype._onCommand = function(command, payload){
this._onCommandSTARTTLS();
break;
+ // No operation
+ case "NOOP":
+ this._onCommandNOOP();
+ break;
+
// Display an error on anything else
default:
this.client.send("502 5.5.2 Error: command not recognized");
@@ -614,6 +619,13 @@ SMTPServerConnection.prototype._onCommandEHLO = function(host){
};
/**
+ * <p>No operation. Just returns OK.</p>
+ */
+SMTPServerConnection.prototype._onCommandNOOP = function(){
+ this.client.send("250 OK");
+}
+
+/**
* <p>Detect login information from the payload and initiate authentication
* by emitting <code>'authorizeUser'</code> and waiting for its callback</p>
*
Please sign in to comment.
Something went wrong with that request. Please try again.