mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
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
This commit is contained in:
parent
dc9fad3a1d
commit
ae91976d56
2 changed files with 52 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue