From 9d08aaf5739dbec0544b81025578b7845e676a03 Mon Sep 17 00:00:00 2001 From: shugo Date: Wed, 26 Jul 2017 07:47:34 +0000 Subject: lib/net/imap.rb: support CHANGEDSINCE and MODSEQ Patch by plehoux (Philippe-Antoine Lehoux). [ruby-core:64272] [Feature #10119] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/net/imap/test_imap_response_parser.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/net') diff --git a/test/net/imap/test_imap_response_parser.rb b/test/net/imap/test_imap_response_parser.rb index 3ebb248b4e..b8c6db86cd 100644 --- a/test/net/imap/test_imap_response_parser.rb +++ b/test/net/imap/test_imap_response_parser.rb @@ -304,4 +304,11 @@ EOF assert_equal("INBOX", response.data.mailbox) assert_equal(1234, response.data.attr["UIDVALIDITY"]) end + + # [Bug #10119] + def test_msg_att_modseq_data + parser = Net::IMAP::ResponseParser.new + response = parser.parse("* 1 FETCH (FLAGS (\Seen) MODSEQ (12345) UID 5)\r\n") + assert_equal(12345, response.data.attr["MODSEQ"]) + end end -- cgit v1.2.3