]> git.openstreetmap.org Git - rails.git/commitdiff
Handle character encodings in single part emails correctly
authorTom Hughes <tom@compton.nu>
Fri, 3 Feb 2012 22:40:35 +0000 (22:40 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 3 Feb 2012 22:40:35 +0000 (22:40 +0000)
script/deliver-message

index b6c679b0a6cf3e863f9e765eed61d78915f6bb09..9cce21f30700a881bae47f0b8b28e99cb58f4cf5 100755 (executable)
@@ -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,