diff options
author | francis <francis> | 2007-12-24 18:26:18 +0000 |
---|---|---|
committer | francis <francis> | 2007-12-24 18:26:18 +0000 |
commit | cb3435b75a0946aad4cf718bb9e1818e627b36dc (patch) | |
tree | 3070789ba80fab952ab553fe958d1a2d5e5244ac | |
parent | 3dd37f0f82c34c76d94fe08f18e08fb00dd804ec (diff) |
Another email
-rw-r--r-- | app/models/incoming_message.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 3a2338db0..7f348bd95 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -19,7 +19,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: incoming_message.rb,v 1.13 2007-12-24 17:27:24 francis Exp $ +# $Id: incoming_message.rb,v 1.14 2007-12-24 18:26:18 francis Exp $ class IncomingMessage < ActiveRecord::Base belongs_to :info_request @@ -117,6 +117,7 @@ class IncomingMessage < ActiveRecord::Base text = text.gsub(self.info_request.public_body.complaint_email, "[" + self.info_request.public_body.short_name + " complaint email]") end text = text.gsub(self.info_request.incoming_email, "[FOI #" + self.info_request.id.to_s + " email]") + text = text.gsub(MySociety::Config.get("CONTACT_EMAIL", 'contact@localhost'), "[GovernmentSpy contact email]") # Remove all other emails text = IncomingMessage.remove_email_addresses(text) |