aboutsummaryrefslogtreecommitdiffstats
path: root/test/net
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-26 07:47:34 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-26 07:47:34 +0000
commit9d08aaf5739dbec0544b81025578b7845e676a03 (patch)
tree060ab033fcccab6efca0de440393f2e8867a0c0d /test/net
parentb7dbd3e842beda8629ce6581f750dc5f50641db1 (diff)
downloadruby-9d08aaf5739dbec0544b81025578b7845e676a03.tar.gz
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
Diffstat (limited to 'test/net')
-rw-r--r--test/net/imap/test_imap_response_parser.rb7
1 files changed, 7 insertions, 0 deletions
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