X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c57d2b29fc1f4647b460b6b74d072c409932e3f2..7377cb63939f8743ca31e67ea3965c2b15d20057:/script/deliver-message 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!