mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
merge revision(s) 59372: [Backport #13649]
lib/net/imap.rb: Ignore trailing space for Microsoft Exchange Server Based on the patch by keysen (Jeremy Carlier). [ruby-core:81641] [Bug #13649] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1f32210886
commit
937457fee8
4 changed files with 25 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
Wed Jan 31 20:25:09 2018 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
lib/net/imap.rb: Ignore trailing space for Microsoft Exchange Server
|
||||
|
||||
Based on the patch by keysen (Jeremy Carlier).
|
||||
[ruby-core:81641] [Bug #13649]
|
||||
|
||||
Wed Jan 31 20:23:49 2018 sorah (Shota Fukumori) <her@sorah.jp>
|
||||
|
||||
Add documents on Process::CLOCK_* constants
|
||||
|
|
|
@ -2201,6 +2201,10 @@ module Net
|
|||
else
|
||||
result = response_tagged
|
||||
end
|
||||
while lookahead.symbol == T_SPACE
|
||||
# Ignore trailing space for Microsoft Exchange Server
|
||||
shift_token
|
||||
end
|
||||
match(T_CRLF)
|
||||
match(T_EOF)
|
||||
return result
|
||||
|
|
|
@ -291,4 +291,17 @@ EOF
|
|||
assert_equal("test.xml", body.parts[1].disposition.param["FILENAME"])
|
||||
assert_equal(nil, body.parts[1].language)
|
||||
end
|
||||
|
||||
# [Bug #13649]
|
||||
def test_status
|
||||
parser = Net::IMAP::ResponseParser.new
|
||||
response = parser.parse("* STATUS INBOX (UIDNEXT 1 UIDVALIDITY 1234)\r\n")
|
||||
assert_equal("STATUS", response.name)
|
||||
assert_equal("INBOX", response.data.mailbox)
|
||||
assert_equal(1234, response.data.attr["UIDVALIDITY"])
|
||||
response = parser.parse("* STATUS INBOX (UIDNEXT 1 UIDVALIDITY 1234) \r\n")
|
||||
assert_equal("STATUS", response.name)
|
||||
assert_equal("INBOX", response.data.mailbox)
|
||||
assert_equal(1234, response.data.attr["UIDVALIDITY"])
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define RUBY_VERSION "2.3.7"
|
||||
#define RUBY_RELEASE_DATE "2018-01-31"
|
||||
#define RUBY_PATCHLEVEL 392
|
||||
#define RUBY_PATCHLEVEL 393
|
||||
|
||||
#define RUBY_RELEASE_YEAR 2018
|
||||
#define RUBY_RELEASE_MONTH 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue