method
msg_att
msg_att()
private
Hide source
# File lib/net/imap.rb, line 2130 def msg_att match(T_LPAR) attr = {} while true token = lookahead case token.symbol when T_RPAR shift_token break when T_SPACE shift_token token = lookahead end case token.value when /\A(?:ENVELOPE)\z/i name, val = envelope_data when /\A(?:FLAGS)\z/i name, val = flags_data when /\A(?:INTERNALDATE)\z/i name, val = internaldate_data when /\A(?:RFC822(?:\.HEADER|\.TEXT)?)\z/i name, val = rfc822_text when /\A(?:RFC822\.SIZE)\z/i name, val = rfc822_size when /\A(?:BODY(?:STRUCTURE)?)\z/i name, val = body_data when /\A(?:UID)\z/i name, val = uid_data else parse_error("unknown attribute `%s'", token.value) end attr[name] = val end return attr end