From 64e1ef41d80e9828951bd12feb6af2f35d96ee64 Mon Sep 17 00:00:00 2001 From: Rick Cobb Date: Wed, 19 Feb 2014 16:44:10 -0800 Subject: [PATCH] Oops. Write the newline in correctly. --- lib/mail_catcher/smtp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mail_catcher/smtp.rb b/lib/mail_catcher/smtp.rb index e0ab752..eb48d0a 100644 --- a/lib/mail_catcher/smtp.rb +++ b/lib/mail_catcher/smtp.rb @@ -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