diff options
author | francis <francis> | 2009-04-08 07:31:07 +0000 |
---|---|---|
committer | francis <francis> | 2009-04-08 07:31:07 +0000 |
commit | 0960200802d7c87940cd0c7348d2f612c4f15d65 (patch) | |
tree | 9ed72928a3759b4a7e0d0cebb1710f6a8a7d2e9c /spec/models/request_mailer_spec.rb | |
parent | 2424bdf7da5346a6bf28dbaf9ff4d9bfd70b070c (diff) |
TMail rebuilds address when constructing emails. Move our more
aggressive quoting rule into a TMail monkey patch proper so it is always called
when constructing emails, and remove the hacky function
(Address.encode_quoted_string) it used to call in special places
Diffstat (limited to 'spec/models/request_mailer_spec.rb')
-rw-r--r-- | spec/models/request_mailer_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/request_mailer_spec.rb b/spec/models/request_mailer_spec.rb index 76eebd05f..7fa28cde4 100644 --- a/spec/models/request_mailer_spec.rb +++ b/spec/models/request_mailer_spec.rb @@ -119,14 +119,14 @@ describe RequestMailer, " when working out follow up addresses" do RequestMailer.email_for_followup(ir, im).should == "foiperson@localhost" end - it "should remove @ signs from name part in reply address as some mail servers hate it" do + it "should quote @ signs" do ir = info_requests(:fancy_dog_request) im = ir.incoming_messages[0] im.raw_email.data.sub!("FOI Person", "FOI @ Person") # check the basic entry in the fixture is fine - RequestMailer.name_and_email_for_followup(ir, im).should == "FOI Person <foiperson@localhost>" + RequestMailer.name_and_email_for_followup(ir, im).should == "\"FOI @ Person\" <foiperson@localhost>" RequestMailer.name_for_followup(ir, im).should == "FOI @ Person" RequestMailer.email_for_followup(ir, im).should == "foiperson@localhost" end |