]> git.openstreetmap.org Git - rails.git/blobdiff - script/deliver-message
Ignore the compiled asset directory
[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!