まつもと ゆきひろです

転送です。[ruby-core:09002]のパッチについて確認してもらえま
せんでしょうか > 主に前田さん

----
http://rubyforge.org/tracker/?func=detail&atid=1700&aid=6026&group_id=426

Submitted By: Justin Collins (presidentbeef)
Summary: net/imap chokes on NOMODSEQ response

Initial Comment:
The response is added in RFC-4551 (http://www.ietf.org/rfc/rfc4551.txt) and is a required response if the server does not support MODSEQ.

The untagged response looks like:
* OK [NOMODSEQ] Sorry, modsequences have not been enabled on this mailbox

In Net::IMAP#resp_text_code, unspecified response codes are expected to look like:
[<code> <data>]

Since [NOMODSEQ] has no space following "NOMODSEQ", Net::IMAP fails to parse the response.

I just added NOMODSEQ to the other responses which contain no data element.