Re: HOWTO: RFC 2047 encoding of From: header?
- From: Pawel Salek <pawsa theochem kth se>
- To: Albrecht Dreß <albrecht dress arcor de>
- Cc: Balsa-Liste <balsa-list gnome org>, Jeffrey Stedfast <fejj ximian com>
- Subject: Re: HOWTO: RFC 2047 encoding of From: header?
- Date: Sun, 04 Jul 2004 19:29:24 +0000
On 07/04/2004 07:08:05 PM, Albrecht Dreß wrote:
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?
I see this incorrect behaviour with 2.1.3, too.
How do I trigger RFC 2047 conversion with gmime, if possible
automatically (note for Balsa: HEAD using gmime cvs sends bad From:
headers!)?
I guess we can explicitely use g_mime_utils_header_encode_phrase()
before calling g_mime_message_set_sender() but this would be just
guessing: GMIME does not mention that the passed string must be 7-bit.
Jeff, what do you think?
Pawel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]