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 b6c679b..9cce21f 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,