From 772e9778fb4ec510fff20a382621928f6d47a8ff Mon Sep 17 00:00:00 2001 From: shugo Date: Thu, 13 Nov 2014 16:32:15 +0000 Subject: * lib/net/imap.rb (search_response): parse MODSEQ in SEARCH responses properly. [ruby-core:64203] [Bug #10112] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/imap.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/net/imap.rb') diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 7bd453f864..a248d75e1b 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -2865,8 +2865,15 @@ module Net break when T_SPACE shift_token - else + when T_NUMBER data.push(number) + when T_LPAR + # TODO: include the MODSEQ value in a response + shift_token + match(T_ATOM) + match(T_SPACE) + match(T_NUMBER) + match(T_RPAR) end end else -- cgit v1.2.3