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