Hi Yuval,
Answers below... On 7/18/2017 5:12 PM, Yuval Peduel via gmime-devel-list wrote:
If the encoding is GMIME_CONTENT_ENCODING_DEFAULT, then the return value will be NULL. Since none of your MIME parts in your sample message had a Content-Transfer-Encoding header, no encoding was specified (which generally means you should treat it as "8bit").
No. The g_mime_part_get_content_description() functions returns the value provided for the Content-Description header (which none of your MIME parts contained). If you want the value of the Content-Type header, you need to use g_mime_object_get_content_type() :) However, that won't return a string, it will return a GMimeContentType due to the fact that you typically want to access parameter values.
Yes. Hope that helps, Jeff |