diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2012-09-25 08:55:35 +1000 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2012-09-25 08:55:35 +1000 |
commit | f59700138f7360436767fddea554c739e2cd484b (patch) | |
tree | 8c3af52f3f1f369ab412fa7571f19860e4f260b8 /app/models/exim_log.rb | |
parent | 265e336ae0608af39aa3aad8b27862e572222562 (diff) |
Extract configuration with defaults into one module
Diffstat (limited to 'app/models/exim_log.rb')
-rw-r--r-- | app/models/exim_log.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/exim_log.rb b/app/models/exim_log.rb index 82000efa1..e1861150f 100644 --- a/app/models/exim_log.rb +++ b/app/models/exim_log.rb @@ -63,7 +63,7 @@ class EximLog < ActiveRecord::Base order = 0 for line in f order = order + 1 - email_domain = MySociety::Config.get("INCOMING_EMAIL_DOMAIN", "localhost") + email_domain = Configuration::incoming_email_domain emails = line.scan(/request-[^\s]+@#{email_domain}/).sort.uniq for email in emails info_request = InfoRequest.find_by_incoming_email(email) |