Handle character encodings in single part emails correctly

This commit is contained in:
Tom Hughes 2012-02-03 22:40:35 +00:00
parent eb8efa0a4b
commit b91072bed4

View file

@ -23,7 +23,7 @@ mail = Mail.new(STDIN.readlines.join)
if mail.multipart?
body = mail.html_part || mail.text_part
else
body = mail.body
body = mail
end
message = Message.new(:sender => from, :recipient => to,