mirror of
https://github.com/moparisthebest/mailcatcher
synced 2024-08-13 17:03:45 -04:00
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
|
def receive_message
|
||||||
# See https://github.com/mikel/mail/issues/612 for why the newline is
|
# See https://github.com/mikel/mail/issues/612 for why the newline is
|
||||||
# added. OTOH: I wonder if it'll screw up multipart.
|
# added. OTOH: I wonder if it'll screw up multipart.
|
||||||
current_message += "\n"
|
current_message[:source] += "\n"
|
||||||
MailCatcher::Mail.add_message current_message
|
MailCatcher::Mail.add_message current_message
|
||||||
puts "==> SMTP: Received message from '#{current_message[:sender]}' (#{current_message[:source].length} bytes)"
|
puts "==> SMTP: Received message from '#{current_message[:sender]}' (#{current_message[:source].length} bytes)"
|
||||||
true
|
true
|
||||||
|
Loading…
Reference in New Issue
Block a user