summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/imap.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 34d324ed12..23b22c0282 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