X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0814b4096c443e2ab3c09baa058aa81a00d205d1..2a44ff581f4c547a3637ea52567a3398b1d8bfe0:/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!