]> git.openstreetmap.org Git - rails.git/blobdiff - script/deliver-message
Use parent.tile.openstreetmap.org for the export URL
[rails.git] / script / deliver-message
index 3df09f85fdbde5cf396d55da6591072dfba2b78c..85519b299a4d2894c990f4a65b421ba06a7a880e 100755 (executable)
@@ -23,7 +23,7 @@ mail = TMail::Mail.parse(STDIN.readlines.join)
 
 message = Message.new(:sender => from, :recipient => to,
                       :sent_on => Time.now.getutc,
-                      :title => mail.subject,
+                      :title => mail.subject.sub(/\[OpenStreetMap\] */, ""),
                       :body => mail.body)
 message.save!