Oops. Write the newline in correctly.
This commit is contained in:
parent
295691d625
commit
64e1ef41d8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue