X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-mime-part.h;h=08825da3f30111c1c8675de4df9cfe514f8c9128;hp=91a54f20d9c4ab40667dfc05dbc981947361ad9f;hb=1efcc4c941da1906a012f9628f6ff6c55242e0bd;hpb=4e501493efaac0d9331e924a2ea569497abff1bf diff --git a/src/modest-tny-mime-part.h b/src/modest-tny-mime-part.h index 91a54f2..08825da 100644 --- a/src/modest-tny-mime-part.h +++ b/src/modest-tny-mime-part.h @@ -77,4 +77,22 @@ gboolean modest_tny_mime_part_is_msg (TnyMimePart *part); */ void modest_tny_mime_part_to_string (TnyMimePart *part, gint indent); +/** + * modest_tny_mime_part_get_content_type: + * @part: a #TnyMimePart + * + * obtains the content type in headers + */ +gchar *modest_tny_mime_part_get_headers_content_type (TnyMimePart *part); + +/** + * modest_tny_mime_part_get_content_type: + * @part: a #TnyMimePart + * + * obtains the content type of a mime part, taking into account that, + * for messages with type message/rfc822 it has to get it from + * the headers + */ +gchar *modest_tny_mime_part_get_content_type (TnyMimePart *part); + #endif /*__MODEST_TNY_MIME_PART_H__*/