From 3bd2deb03933e126921067e4acde18a52a367a16 Mon Sep 17 00:00:00 2001 From: shugo Date: Wed, 14 Feb 2001 08:40:49 +0000 Subject: * lib/net/imap.rb: supports unknown resp_text_code. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/imap.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/net') diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 34d324ed1..23b22c028 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -1475,6 +1475,12 @@ module Net when /\A(?:UIDVALIDITY|UIDNEXT|UNSEEN)\z/n match(T_SPACE) result = ResponseCode.new(name, number) + else + match(T_SPACE) + @lex_state = EXPR_CTEXT + token = match(T_TEXT) + @lex_state = EXPR_BEG + result = ResponseCode.new(name, token.value) end match(T_RBRA) @lex_state = EXPR_RTEXT -- cgit