Commit ec3a66f

mokha <mokha@cisco.com>
2019-03-03 20:26:30
implement NOOP
1 parent a0b8c19
Changed files (1)
lib
lib/minbox/client.rb
@@ -21,6 +21,7 @@ module Minbox
         when /^QUIT/i then quit
         when /^STARTTLS/i then start_tls
         when /^RSET/i then reset
+        when /^NOOP/i then noop
         else
           logger.error(line)
           socket.puts('502 Invalid/unsupported command')
@@ -75,5 +76,9 @@ module Minbox
       @body = []
       socket.puts '250 OK'
     end
+
+    def noop
+      socket.puts '250 OK'
+    end
   end
 end