Struct.new(:name, :data)
Net::IMAP::ResponseCode represents response codes.
resp_text_code ::= "ALERT" /
"BADCHARSET" [SP "(" astring *(SP astring) ")" ] /
capability_data / "PARSE" /
"PERMANENTFLAGS" SP "("
[flag_perm *(SP flag_perm)] ")" /
"READ-ONLY" / "READ-WRITE" / "TRYCREATE" /
"UIDNEXT" SP nz_number / "UIDVALIDITY" SP nz_number /
"UNSEEN" SP nz_number /
atom [SP 1*<any TEXT-CHAR except "]">]
Returns the name, such as “ALERT”, “PERMANENTFLAGS”, or “UIDVALIDITY”.
Returns the data, if it exists.