summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-13 16:32:15 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-13 16:32:15 +0000
commit772e9778fb4ec510fff20a382621928f6d47a8ff (patch)
tree2ac018a3913bcb5608c46723f90c7db466b04edb /lib
parente84e56db54d15ff01558a1cc47952c3bead381df (diff)
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/net/imap.rb9
1 files changed, 8 insertions, 1 deletions
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