HOWTO: RFC 2047 encoding of From: header?



Hi Jeff,

I noticed that using the gmime cvs, the From: header (and maybe others, too?) is not properly RFC 2047 encoded by default, i.e. the sequence

<snip>
msg = g_mime_message_new(TRUE);
g_mime_message_set_sender(msg, "Albrecht Dreß <albrecht dress arcor de>");
cont = g_mime_object_to_string(GMIME_OBJECT(msg));
</snip>

leaves "From: Albrecht Dre\xdf <albrecht dress arcor de>" in the returned string, which obviously violates RFC 2047. Is this the expected behaviour? How do I trigger RFC 2047 conversion with gmime, if possible automatically (note for Balsa: HEAD using gmime cvs sends bad From: headers!)?

Tia, Cheers,

	Albrecht.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
      Phone (+49) 228 6199571  -  mailto:albrecht dress arcor de
_________________________________________________________________________

Attachment: pgpOkuDFRpTt9.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]