diff --git a/lib/mail_catcher/smtp.rb b/lib/mail_catcher/smtp.rb index 6088013..ee7356d 100644 --- a/lib/mail_catcher/smtp.rb +++ b/lib/mail_catcher/smtp.rb @@ -34,10 +34,7 @@ class MailCatcher::Smtp < EventMachine::Protocols::SmtpServer def receive_data_chunk(lines) current_message[:source] ||= "" - lines.each do |line| - # RFC821 4.5.2 says leading periods should be stripped from the body data. - current_message[:source] << line.sub(/\A\./, "") << "\n" - end + current_message[:source] << lines.join("\n") true end