class Net::IMAP::ResponseCode

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 "]">]

Fields:

name

Returns the name, such as “ALERT”, “PERMANENTFLAGS”, or “UIDVALIDITY”.

data

Returns the data, if it exists.