aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-04-03 17:23:39 +0000
committerfrancis <francis>2008-04-03 17:23:39 +0000
commit80ac23c66ed73b1a5514209e01d02b2549344442 (patch)
tree64686550fc47dd2c74aec9e4d9f164fc7e5b63ac /app/models/info_request.rb
parent8adf1deda3ff762bc92f668d3ace9bd04a833496 (diff)
Match magic email case insensitively
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb5
1 files changed, 4 insertions, 1 deletions
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)