X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0814b4096c443e2ab3c09baa058aa81a00d205d1..7dbf8d83369cb73929080c4ba23fdd7dcd0184df:/script/deliver-message?ds=inline diff --git a/script/deliver-message b/script/deliver-message index 46f9642e7..15a9fbdc7 100755 --- a/script/deliver-message +++ b/script/deliver-message @@ -25,7 +25,9 @@ exit 0 if date < 1.month.ago message.update(:message_read => true) if message -mail = Mail.new(STDIN.readlines.join) +mail = Mail.new(STDIN.read + .encode(:universal_newline => true) + .encode(:crlf_newline => true)) message = Message.from_mail(mail, from, to) message.save!