diff options
-rw-r--r-- | app/models/incoming_message.rb | 8 | ||||
-rw-r--r-- | todo.txt | 22 |
2 files changed, 11 insertions, 19 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index e03e1ca82..43231761a 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -17,7 +17,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.99 2008-05-12 17:02:41 francis Exp $ +# $Id: incoming_message.rb,v 1.100 2008-05-12 23:07:31 francis Exp $ # TODO # Move some of the (e.g. quoting) functions here into rblib, as they feel @@ -177,10 +177,10 @@ class IncomingMessage < ActiveRecord::Base # Replaces emails we know about in (possibly binary data) with equal length alternative ones. def binary_mask_special_emails(text) if not self.info_request.public_body.request_email.empty? - text = text.gsub(self.info_request.public_body.request_email, 'X' * self.info_request.public_body.request_email.size) + text = text.gsub(Regexp.new(self.info_request.public_body.request_email, Regexp::IGNORECASE), 'X' * self.info_request.public_body.request_email.size) end - text = text.gsub(self.info_request.incoming_email, 'X' * self.info_request.incoming_email.size) - text = text.gsub(MySociety::Config.get("CONTACT_EMAIL", 'contact@localhost'), 'X' * MySociety::Config.get("CONTACT_EMAIL", 'contact@localhost').size) + text = text.gsub(Regexp.new(self.info_request.incoming_email, Regexp::IGNORECASE), 'X' * self.info_request.incoming_email.size) + text = text.gsub(Regexp.new(MySociety::Config.get("CONTACT_EMAIL", 'contact@localhost'), Regexp::IGNORECASE), 'X' * MySociety::Config.get("CONTACT_EMAIL", 'contact@localhost').size) return text end @@ -1,6 +1,3 @@ - -create_track_for_request - FOI requests to use to test it ============================== @@ -34,10 +31,13 @@ BAILII - relationship with law courts, robots.txt ? Next ==== -Things to track - don't ever return users / public bodies for now! +Things to track - anything requesty with keyword -Link to /list/successful from /list +Blog posts / Wikipedia articles about this request + e.g. http://socialreporter.wordpress.com/2008/04/14/costs-of-the-bbc-action-action-network/ + http://reportr.net/2008/04/24/bbc-spent-6m-to-develop-the-iplayer/ +Or just look at referrers as Julian says Later ===== @@ -68,22 +68,17 @@ When you click RSS feed when on own request, default to RSS in the choice on nex Offer search on 404s -Search and replace text "FOI" and "Freedom of Information" out the way more - - but put it in the title tag - Send email to remind people to clarify Preview when sending followups - especially people need to see quoting/subject when sending "my response is late" -Change email address interface - easier to do now with post_redirect.circumstance? +Interface for when you change your email address - easier to do now with post_redirect.circumstance? One of the PDFs on live site has: Error: PDF version 1.6 -- xpdf supports version 1.5 (continuing anyway) Need to upgrade to poppler-utils? -Add lots more UNIQUE indices - Merge workflow into one stream - find information, if you can't find it then request it. so just search is on front page, with popular stuff below a la Google Directory Use spelling correction for public bodies search? @@ -120,10 +115,6 @@ CSV export of lists of emails for admins Requests with related content - via a compare document search somehow? - using the tracking requests network -Blog posts / Wikipedia articles about this request - e.g. http://socialreporter.wordpress.com/2008/04/14/costs-of-the-bbc-action-action-network/ - http://reportr.net/2008/04/24/bbc-spent-6m-to-develop-the-iplayer/ -Or just look at referrers as Julian says Remember me box This can't possible be the best way, it is too depressing: @@ -213,6 +204,7 @@ Quoting fixing TODO: http://www.whatdotheyknow.com/request/297/response/449 http://www.whatdotheyknow.com/request/289/response/419 http://www.whatdotheyknow.com/request/235/response/513 + http://www.whatdotheyknow.com/request/299/response/484 Sources of public bodies ======================== |