Class: Minbox::Ehlo

Inherits:
Object
  • Object
show all
Defined in:
lib/minbox/client.rb

Instance Method Summary collapse

Instance Method Details

#run(client, line) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/minbox/client.rb', line 5

def run(client, line)
  _ehlo, _client_domain = line.split(' ')
  client.write "250-#{client.server.host} offers a warm hug of welcome"
  client.write '250-8BITMIME'
  client.write '250-ENHANCEDSTATUSCODES'
  # client.write "250 STARTTLS"
  client.write '250-AUTH PLAIN LOGIN'
  client.write '250 OK'
end