Hi,

2009/7/8 Aria Stewart <aredridel / nbtsc.org>:
> This patch fixes the response "* OK [CLOSED]" to a SELECT command, which is
> used in the quick resync extension. diff -ur
> ruby-1.8.7-p173-o/lib/net/imap.rb ruby-1.8.7-p173/lib

Thanks for your report.

However, your patch looks no good because it rescues all ResponseParseError.
How about the attached patch?
-- 
Shugo Maeda
SW5kZXg6IGxpYi9uZXQvaW1hcC5yYgo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBsaWIvbmV0L2ltYXAucmIJKHJl
dmlzaW9uIDI0MTc3KQorKysgbGliL25ldC9pbWFwLnJiCSh3b3JraW5nIGNvcHkpCkBAIC0yNzc2
LDExICsyNzc2LDE2IEBACiAgICAgICAgICAgbWF0Y2goVF9TUEFDRSkKICAgICAgICAgICByZXN1
bHQgPSBSZXNwb25zZUNvZGUubmV3KG5hbWUsIG51bWJlcikKICAgICAgICAgZWxzZQotICAgICAg
ICAgIG1hdGNoKFRfU1BBQ0UpCi0gICAgICAgICAgQGxleF9zdGF0ZSA9IEVYUFJfQ1RFWFQKLSAg
ICAgICAgICB0b2tlbiA9IG1hdGNoKFRfVEVYVCkKLSAgICAgICAgICBAbGV4X3N0YXRlID0gRVhQ
Ul9CRUcKLSAgICAgICAgICByZXN1bHQgPSBSZXNwb25zZUNvZGUubmV3KG5hbWUsIHRva2VuLnZh
bHVlKQorICAgICAgICAgIHRva2VuID0gbG9va2FoZWFkCisgICAgICAgICAgaWYgdG9rZW4uc3lt
Ym9sID09IFRfU1BBQ0UKKyAgICAgICAgICAgIHNoaWZ0X3Rva2VuCisgICAgICAgICAgICBAbGV4
X3N0YXRlID0gRVhQUl9DVEVYVAorICAgICAgICAgICAgdG9rZW4gPSBtYXRjaChUX1RFWFQpCisg
ICAgICAgICAgICBAbGV4X3N0YXRlID0gRVhQUl9CRUcKKyAgICAgICAgICAgIHJlc3VsdCA9IFJl
c3BvbnNlQ29kZS5uZXcobmFtZSwgdG9rZW4udmFsdWUpCisgICAgICAgICAgZWxzZQorICAgICAg
ICAgICAgcmVzdWx0ID0gUmVzcG9uc2VDb2RlLm5ldyhuYW1lLCBuaWwpCisgICAgICAgICAgZW5k
CiAgICAgICAgIGVuZAogICAgICAgICBtYXRjaChUX1JCUkEpCiAgICAgICAgIEBsZXhfc3RhdGUg
PSBFWFBSX1JURVhUCg==