Commit 2161cd3
lib/minbox/cli.rb
@@ -18,7 +18,8 @@ module Minbox
end
require 'net/smtp'
Net::SMTP.start(host, port) do |smtp|
- smtp.send_message(mail.to_s, 'me@example.org', 'them@example.com')
+ smtp.send_message(mail.to_s, 'me+1@example.org', 'them+1@example.com')
+ #smtp.send_message(mail.to_s, 'me+2@example.org', 'them+2@example.com')
end
end
lib/minbox/client.rb
@@ -41,7 +41,7 @@ module Minbox
def data(line)
socket.puts "354 End data with <CR><LF>.<CR><LF>"
line = socket.gets
- until line.match(/^\.\r\n$/)
+ until line.nil? || line.match(/^\.\r\n$/)
@body << line
line = socket.gets
end