Oops. Write the newline in correctly.

This commit is contained in:
Rick Cobb 2014-02-19 16:44:10 -08:00
parent 295691d625
commit 64e1ef41d8
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class MailCatcher::Smtp < EventMachine::Protocols::SmtpServer
def receive_message
# See https://github.com/mikel/mail/issues/612 for why the newline is
# added. OTOH: I wonder if it'll screw up multipart.
current_message += "\n"
current_message[:source] += "\n"
MailCatcher::Mail.add_message current_message
puts "==> SMTP: Received message from '#{current_message[:sender]}' (#{current_message[:source].length} bytes)"
true