X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2038cd52c65158a9b31299c62e4beb72c61a18b7..a6938623711855016cbc4aa4f99beb825ce4731d:/script/deliver-message diff --git a/script/deliver-message b/script/deliver-message index 58afa3451..85519b299 100755 --- a/script/deliver-message +++ b/script/deliver-message @@ -15,7 +15,6 @@ else digest = message.digest from = message.recipient to = message.sender - subject = message.subject.sub(/\[OpenStreetMap\] */, "") end exit 0 unless recipient[3] == digest[0,6] @@ -24,7 +23,7 @@ mail = TMail::Mail.parse(STDIN.readlines.join) message = Message.new(:sender => from, :recipient => to, :sent_on => Time.now.getutc, - :title => subject, + :title => mail.subject.sub(/\[OpenStreetMap\] */, ""), :body => mail.body) message.save!