summaryrefslogtreecommitdiff
path: root/test/net/imap/test_imap_response_parser.rb
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-07 08:07:12 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-07 08:07:12 +0000
commitfd019a5cbdb6c3dd3a96abe64c53f6918d07ff3a (patch)
treea16781bf952099e4c7a37b3c08d4d7fb9216b7ef /test/net/imap/test_imap_response_parser.rb
parente806b0fed77d94ea426bfc0269ab3b01feaf218c (diff)
* lib/net/imap.rb (xlist): supported the XLIST command, which is an
extension by Apple and Google. patch by Geoff Youngs. [ruby-core:33521] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/imap/test_imap_response_parser.rb')
-rw-r--r--test/net/imap/test_imap_response_parser.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/net/imap/test_imap_response_parser.rb b/test/net/imap/test_imap_response_parser.rb
index f106e4a61d..fca71e2436 100644
--- a/test/net/imap/test_imap_response_parser.rb
+++ b/test/net/imap/test_imap_response_parser.rb
@@ -56,6 +56,15 @@ EOF
end
end
+ def test_flag_xlist_inbox
+ parser = Net::IMAP::ResponseParser.new
+ response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* XLIST (\\Inbox) "." "INBOX"
+EOF
+ assert_equal [:Inbox], response.attr.data
+ end
+
+
def test_resp_text_code
parser = Net::IMAP::ResponseParser.new
response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)