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

**URL:** <https://www.ruby-forum.com/t/ruby-patches-6026-net-imap-chokes-on-nomodseq-response/71092>\
**Category:** Development\
**Created:** [October 5, 2006, 9:40am UTC](https://www.ruby-forum.com/t/ruby-patches-6026-net-imap-chokes-on-nomodseq-response/71092 "2006-10-05T09:40:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yukihiro\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/c57346/32.png) [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Post date:** [October 5, 2006, 9:40am UTC](https://www.ruby-forum.com/t/ruby-patches-6026-net-imap-chokes-on-nomodseq-response/71092/1 "2006-10-05T09:40:08Z")

</div>

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](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](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.`

---

<div class="post-metadata">

**Author:** ![Yukihiro\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/c57346/32.png) [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Post date:** [October 6, 2006, 2:40am UTC](https://www.ruby-forum.com/t/ruby-patches-6026-net-imap-chokes-on-nomodseq-response/71092/2 "2006-10-06T02:40:11Z")

</div>

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
