Marcel Crasmaru writes:
Hi everybody,

I have some questions regarding IMAP.

First, it seems that RFC 3501 is missing the definition of 'CHAR'.

CHAR is defined in RFC2234, which defines the grammar used in RFC 3501 (and most other RFCs, but not RFC 2060). It's a seven-bit US-ASCII value excluding NUL.


Second, assuming that the RFC 2060 definition of 'CHAR' is the right one, what should an IMAP server respond to the request, say,
B1 SEARCH CHARSET UTF-8 TEXT "0x80" ?
(Mozilla 1.4 is sending requests like the above). Should the server respond with a tagged BAD response?

Assuming that "0x80" means a single character: Yes, answer BAD. Mozilla should be sending a literal - 0x80 isn't a valid CHAR.


(Besides, the single byte 0x80 isn't a valid UTF-8 sequence.)

--Arnt

Reply via email to