Commit fd225a2

mokha <mokha@cisco.com>
2019-03-05 22:20:09
describe support for AUTH PLAIN and LOGIN
1 parent dd3ad40
Changed files (1)
lib
lib/minbox/client.rb
@@ -60,6 +60,7 @@ module Minbox
     def ehlo(line)
       _ehlo, _client_domain = line.split(" ")
       write "250-#{host}"
+      write "250 AUTH PLAIN LOGIN"
       write "250 OK"
     end
 
@@ -110,7 +111,7 @@ module Minbox
     end
 
     def write(message)
-      #message = "#{message}\r\n"
+      message = "#{message}\r\n"
       logger.debug("S: #{message.inspect}")
       socket.puts message
     end