From 9be3aa1767681caf5a441336eaf6408979a26649 Mon Sep 17 00:00:00 2001 From: shugo Date: Mon, 7 May 2012 04:05:44 +0000 Subject: * lib/net/imap.rb (body_type_attachment): parse body type "ATTACHMENT". [ruby-core:44849] [Bug #6397] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/net/imap/test_imap_response_parser.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/net/imap') diff --git a/test/net/imap/test_imap_response_parser.rb b/test/net/imap/test_imap_response_parser.rb index b4d36c9091..0231ed436b 100644 --- a/test/net/imap/test_imap_response_parser.rb +++ b/test/net/imap/test_imap_response_parser.rb @@ -142,4 +142,14 @@ foo EOF assert_equal("foo\r\n", response.data.attr["RFC822"]) end + + # [Bug #6397] [ruby-core:44849] + def test_body_type_attachment + parser = Net::IMAP::ResponseParser.new + response = parser.parse(<