[ ruby-Patches-6026 ] net/imap chokes on NOMODSEQ response

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

e$BE>Aw$G$9!#e(B[ruby-core:09002]e$B$N%Q%C%A$K$D$$$F3NG’$7$F$b$i$($^e(B
e$B$;$s$G$7$g$&$+e(B e$B!de(B e$B<g$KA0ED$5$se(B


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

Submitted By: Justin C. (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:
[ ]

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.

e$BA0ED$G$9!#e(B

Yukihiro M. wrote:

e$BE>Aw$G$9!#e(B[ruby-core:09002]e$B$N%Q%C%A$K$D$$$F3NG’$7$F$b$i$($^e(B
e$B$;$s$G$7$g$&$+e(B e$B!de(B e$B<g$KA0ED$5$se(B

e$BN;2r$G$9!#e(B
e$BO"5Y$K$G$b3NG’$7$^$9!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs