From 97ac172d58d695305c39d555155318edb99f1ea7 Mon Sep 17 00:00:00 2001 From: shugo Date: Thu, 16 Jun 2011 02:41:03 +0000 Subject: [PATCH] * lib/net/imap.rb (search_response): parses SEARCH responses from the Yahoo IMAP server correctly. patched by Mark Nadig. [Bug #4509] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 ++++ lib/net/imap.rb | 3 ++- test/net/imap/test_imap_response_parser.rb | 29 +++++++++++++++++++++- 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9288a00f34..ca35e495d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 16 11:35:09 2011 Shugo Maeda + + * lib/net/imap.rb (search_response): parses SEARCH responses from + the Yahoo IMAP server correctly. patched by Mark Nadig. [Bug #4509] + Thu Jun 16 09:12:38 2011 Nobuyoshi Nakada * fix for build on solaris 10. diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 0ddb0f346f..724bc08e3b 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -2748,8 +2748,9 @@ module Net break when T_SPACE shift_token + else + data.push(number) end - data.push(number) end else data = [] diff --git a/test/net/imap/test_imap_response_parser.rb b/test/net/imap/test_imap_response_parser.rb index 599747dd76..ccdffd21ca 100644 --- a/test/net/imap/test_imap_response_parser.rb +++ b/test/net/imap/test_imap_response_parser.rb @@ -64,7 +64,6 @@ EOF assert_equal [:Inbox], response.data.attr end - def test_resp_text_code parser = Net::IMAP::ResponseParser.new response = parser.parse(<