X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/15b104f4ff4614aa78c01180b6a9b89dd5a1400f..c7e514a56b7b420ebe3d32a9ad2d6751587b1faa:/script/deliver-message?ds=sidebyside 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!