From 996fa1526dd238a12e1f6173090d8bcbbfd567d2 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Wed, 22 Jun 2005 09:59:14 +0000 Subject: Unquoted @ chars in received email headers are parsed properly in spite of RFC 822 (#1206) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1476 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionmailer/test/mail_service_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionmailer/test/mail_service_test.rb') diff --git a/actionmailer/test/mail_service_test.rb b/actionmailer/test/mail_service_test.rb index d9f6935674..b61565023c 100755 --- a/actionmailer/test/mail_service_test.rb +++ b/actionmailer/test/mail_service_test.rb @@ -521,5 +521,11 @@ EOF mail = TMail::Mail.parse(fixture) assert_nothing_raised { mail.body } end + + def test_decode_message_with_unquoted_atchar_in_header + fixture = File.read(File.dirname(__FILE__) + "/fixtures/raw_email11") + mail = TMail::Mail.parse(fixture) + assert_not_nil mail.from + end end -- cgit v1.2.3