diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2012-10-11 13:14:53 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2012-10-11 13:14:53 +1100 |
commit | 9ae51d5ff6a9f56fd1bd4ba4bdd84bfd43ac6d95 (patch) | |
tree | e8286197a0baee340a2c2060060d3814d823f3cf /spec/models/mail_server_log_spec.rb | |
parent | e439dee4fe6e9402ebf2a806e6957a9f82d9993a (diff) |
Also allow arbitrary subdomain on email addresses picked up in the logs
Diffstat (limited to 'spec/models/mail_server_log_spec.rb')
-rw-r--r-- | spec/models/mail_server_log_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/mail_server_log_spec.rb b/spec/models/mail_server_log_spec.rb index d0a1d202f..bcd74c380 100644 --- a/spec/models/mail_server_log_spec.rb +++ b/spec/models/mail_server_log_spec.rb @@ -89,6 +89,11 @@ describe MailServerLog do it "ignores an email where the . is substituted for something else" do MailServerLog.email_addresses_on_line("foi+request-14-e0e09f97@exampledcom").should be_empty end + + it "accept emails with an arbitrary subdomain" do + MailServerLog.email_addresses_on_line("foi+request-14-e0e09f97@foo.example.com").should == + ["foi+request-14-e0e09f97@foo.example.com"] + end end context "Postfix" do |