From: Ryan Davis Date: 2012-02-23T08:37:22+09:00 Subject: Re: Net::IMAP::ResponseParseError On Feb 21, 2012, at 00:53 , Petite Abeille wrote: > Note the envelope subject: > > "Lua, strfind \0-quirk/bug" > > Notice the literal "\0". As there is no escape sequences in IMAP, \0 should be treated as a regular string. http://tools.ietf.org/html/rfc3501#page-17 8-bit textual and binary mail is supported through the use of a [MIME-IMB] content transfer encoding. IMAP4rev1 implementations MAY transmit 8-bit or multi-octet characters in literals, but SHOULD do so only when the [CHARSET] is identified. Although a BINARY body encoding is defined, unencoded binary strings are not permitted. A "binary string" is any string with NUL characters. Implementations MUST encode binary data into a textual form, such as BASE64, before transmitting the data. A string with an excessive amount of CTL characters MAY also be considered to be binary.