[Imap-protocol] MUTF7, UTF8, and Unicode flags

Nicolas Ojeda Bar <[email protected]>
Newsgroups gmane.mail.imap.general
Message-ID <CAPunWhCDfYrqx_Px-072QAjZbog2DFz9O=48WnCxaxOov-VNVQ@mail.gmail.com>
Dear List,

I am trying to implement an IMAP4rev1 client correctly, and was a
little lost with respect to the use of MUTF7 and more generally how
unicode works with respect to IMAP. I am writing so maybe someone more
experienced can correct my misunderstandings.

1. First of all, the page
<http://fetchmail.berlios.de/Mailbox-Names-UTF7.html> seems to
indicate that mailboxes names must be encoded/decoded into MUTF7 when
talking to the server. Period. Now, if the client happens to receive a
name that contains a byte that does not fit in 7 bits, then it must
automatically consider that name to be encoded in UTF8, in which case
the MUTF7 decoding is not necessary.

2. Is the same true for Flags? I did a little experimenting with Gmail
and it seemed to be encoding flags with MUTF7 (but I am not 100% sure
about this)... In general, are flags supposed to be encoded in any
particular manner?

I am sure I will have more questions as I progress, but if I could
understand these two points I would be happy already.

Thanks a lot!

Best wishes,
Nicolas
_______________________________________________
Imap-protocol mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-protocol
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.