aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net/imap.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/imap.rb')
-rw-r--r--lib/net/imap.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index c8faf97c11..b2193dbf93 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -2281,6 +2281,11 @@ module Net
def rfc822_text
token = match(T_ATOM)
name = token.value.upcase
+ token = lookahead
+ if token.symbol == T_LBRA
+ shift_token
+ match(T_RBRA)
+ end
match(T_SPACE)
return name, nstring
end