[#81999] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — ko1@...
Issue #13737 has been updated by ko1 (Koichi Sasada).
4 messages
2017/07/11
[#82005] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — nobu@...
Issue #13737 has been updated by nobu (Nobuyoshi Nakada).
3 messages
2017/07/12
[#82102] Re: register_fstring_tainted:FL_TEST_RAW(str, RSTRING_FSTR) — Eric Wong <normalperson@...>
Koichi Sasada <ko1@atdot.net> wrote:
4 messages
2017/07/18
[#82151] [Ruby trunk Feature#13637] [PATCH] tool/runruby.rb: test with smallest possible machine stack — Rei.Odaira@...
Issue #13637 has been updated by ReiOdaira (Rei Odaira).
3 messages
2017/07/24
[ruby-core:82063] [Ruby trunk Bug#13649][Assigned] Net::IMAP doesn't support response from a Microsoft Exchange server (which is not compliant with RFC standards)
From:
naruse@...
Date:
2017-07-14 09:26:50 UTC
List:
ruby-core #82063
Issue #13649 has been updated by naruse (Yui NARUSE).
Status changed from Open to Assigned
Assignee set to shugo (Shugo Maeda)
----------------------------------------
Bug #13649: Net::IMAP doesn't support response from a Microsoft Exchange server (which is not compliant with RFC standards)
https://bugs.ruby-lang.org/issues/13649#change-65797
* Author: keysen (J辿r辿my Carlier)
* Status: Assigned
* Priority: Normal
* Assignee: shugo (Shugo Maeda)
* Target version:
* ruby -v: 2.3.1
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Hello,
This day I wanted to use a mailbox hosted on a Microsoft Exchange server and it was not working.
I found this nice article relating the issue: http://claudiofloreani.blogspot.fr/2012/01/monkeypatching-ruby-imap-class-to-build.html
My solution to support those crappy server:
```ruby
module Net
class IMAP
class ResponseParser
def response
token = lookahead
case token.symbol
when T_PLUS
result = continue_req
when T_STAR
result = response_untagged
else
result = response_tagged
end
match(T_SPACE) if lookahead.symbol == T_SPACE
match(T_CRLF)
match(T_EOF)
return result
end
end
end
end
```
Step to reproduce: (require an horrible server :))
```ruby
imap_connexion = Net::IMAP.new(localhost, 993, true, nil, false)
imap_connexion.status('INBOX', ["UIDNEXT", "UIDVALIDITY"])
```
Then the server should reply with:
"* STATUS INBOX (UIDNEXT 1 UIDVALIDITY 1585372) \r\n"
And the bug occurs because we have a space at the end of the line which is not in the RFC, but as usual Microsoft makes its own RFC...
If you have any questions, suggestions just ask, if I can help.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>