Class: Minbox::Helo

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

Instance Method Summary collapse

Instance Method Details

#run(client, line) ⇒ Object



17
18
19
20
# File 'lib/minbox/client.rb', line 17

def run(client, line)
  _ehlo, client_domain = line.split(" ")
  client.write "250 Hello #{client_domain}, pleased to meet you"
end