mirror of
https://github.com/moparisthebest/mailcatcher
synced 2024-12-22 07:18:53 -05:00
It seems EventMachine already does this for us
This commit is contained in:
parent
1241446fa0
commit
808ada7a3b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user