Re: [gmime-devel] What's the preferred way to retrieve message body?



Title: RE: [gmime-devel] What's the preferred way to retrieve message body?

Thanks for the suggestion. I should read the archive first next time. I also upgraded
the system to use gmime-2.4.11 to be a bit more future-proof.

I have another newbie question for the list.

When I use gmime-2.0 (stock on FC7), the internet_address_get_name() returns rfc2047-
decoded string, but that's not true anymore in gmime-2.4. At the same time, all other
header fields, such as subject, are still automatically rfc2047-decoded. This can be
seen in gmime-message.c::process_header(), the function g_mime_utils_header_decode_text()
is not called on the address fields.

Is this a design decision? Should I call g_mime_utils_header_decode_text() myself to get
rfc2047-decoded sender name?

Thanks a lot,

- Junping


-----Original Message-----
From: Dirk-Jan C. Binnema [mailto:djcb bulk gmail com]
Sent: Thu 1/21/2010 12:35 PM
To: Junping Zhang
Cc: gmime-devel-list gnome org
Subject: Re: [gmime-devel] What's the preferred way to retrieve message body?

>>>>> "Junping" == Junping Zhang <junping zhang indexengines com> writes:

    Junping> Hi, there,

    Junping>   Since g_mime_message_get_body is deprecated, what's the
    Junping>   sequence of functions that should be used to retrieve message
    Junping>   body from GMimeMessage?

See:
    http://osdir.com/ml/gmime-devel-list/2009-11/msg00003.html

Best wishes,
Dirk.

--
Dirk-Jan C. Binnema                  Helsinki, Finland
e:djcb djcbsoftware nl           w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C



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