Paul J Stevens wrote:
> During the construction of the ENVELOPE response, we need to parse the
> email address headers such as From, To and Reply-to. For that we
> currently use gmime's InternetAddress interface which is very good at
> dealing with such data. Internally InternetAddress uses utf-8 encoding,
> while in the context of imap we need rfc2047 (utf-7) encoded headers.
>
> So when the name of the sender is needed we need to encode that name,
> and for that I'm currently using;
>
> char * gmime_utils_header_encode_phrase(unsigned char *in);
>
> That call does a best-effort attempt at finding the right encoding for
> the utf-8 string 'in', which in this case returns iso-8859-5, even
> though that charset is said to be the least popular encoding for
> cyrillic characters according to the comments in gmime-utils.c.
>
> So, if it works for you I'm happy with it. If it becomes a problem for
> other users later on, we can escalate this upstream to the good folks at
> redhat who are working on gmime.

OK
I undestand.

Thanks again.

-- 
Oleg Lapshin

Reply via email to