summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-14 08:40:49 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-14 08:40:49 +0000
commit3bd2deb03933e126921067e4acde18a52a367a16 (patch)
tree7bfaf117d629fb59c66e09255d6d7bc649deec77
parent60dec368e69aaded97dcdc6624db7610f2dca625 (diff)
downloadruby-3bd2deb03933e126921067e4acde18a52a367a16.tar.gz
ruby-3bd2deb03933e126921067e4acde18a52a367a16.tar.xz
ruby-3bd2deb03933e126921067e4acde18a52a367a16.zip
* 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
-rw-r--r--ChangeLog4
-rw-r--r--lib/net/imap.rb6
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fef4067ae..68e278a52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Feb 14 17:28:24 2001 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb: supports unknown resp_text_code.
+
Wed Feb 14 00:44:17 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* dir.c (dir_s_glob): supprt backslash escape of metacharacters
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