From 80ac23c66ed73b1a5514209e01d02b2549344442 Mon Sep 17 00:00:00 2001 From: francis Date: Thu, 3 Apr 2008 17:23:39 +0000 Subject: Match magic email case insensitively --- app/models/info_request.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/models/info_request.rb') diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 1633aec3d..cae7bc24f 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -22,7 +22,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: info_request.rb,v 1.79 2008-04-01 16:40:37 francis Exp $ +# $Id: info_request.rb,v 1.80 2008-04-03 17:23:39 francis Exp $ require 'digest/sha1' @@ -152,6 +152,9 @@ public # the prefix and domain, as sometimes those change, or might be elided by # copying an email, and that doesn't matter) def InfoRequest.find_by_incoming_email(incoming_email) + # Match case insensitively + incoming_email = incoming_email.downcase + # The optional bounce- dates from when we used to have separate emails for the envelope from. # (that was abandoned because councils would send hand written responses to them, not just # bounce messages) -- cgit v1.2.3