X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7d8cf94680a369b694a27a2657ffb097bc772511..1340fca8f17e4e3cce211e6eafed18cde7f57386:/script/deliver-message diff --git a/script/deliver-message b/script/deliver-message index 9cce21f30..669e54a66 100755 --- a/script/deliver-message +++ b/script/deliver-message @@ -26,10 +26,13 @@ else body = mail end -message = Message.new(:sender => from, :recipient => to, - :sent_on => mail.date.new_offset(0), - :title => mail.subject.sub(/\[OpenStreetMap\] */, ""), - :body => body.decoded) +message = Message.new({ + :sender => from, + :recipient => to, + :sent_on => mail.date.new_offset(0), + :title => mail.subject.sub(/\[OpenStreetMap\] */, ""), + :body => body.decoded +}, :without_protection => true) message.save! Notifier.message_notification(message).deliver