X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-mime-part.h;h=08825da3f30111c1c8675de4df9cfe514f8c9128;hp=b1c577c33dd4b9d42f5c9bd92d4c0083a9972f46;hb=16c1a13ce46a9befd8fbe3d0fd63ce80c1a5cd97;hpb=12fe7988e34a4ba22a68f687db4993e12578a9b2 diff --git a/src/modest-tny-mime-part.h b/src/modest-tny-mime-part.h index b1c577c..08825da 100644 --- a/src/modest-tny-mime-part.h +++ b/src/modest-tny-mime-part.h @@ -56,4 +56,43 @@ gchar* modest_tny_mime_part_get_header_value (TnyMimePart *part, const gchar *he gboolean modest_tny_mime_part_is_attachment_for_modest (TnyMimePart *part); +/** + * modest_tny_mime_part_is_msg: + * @part: a #TnyMimePart + * + * determines if this is a message (it's a TnyMsg and it's not a + * file attached as the top mime part of the TnyMsg). + * + * Returns: %TRUE if it's a real message, %FALSE otherwise + */ +gboolean modest_tny_mime_part_is_msg (TnyMimePart *part); + +/** + * modest_tny_mime_part_to_string: + * @part: a #TnyMimePart + * @indent: indent level (should be 0) + * + * Shows in stdout a text representation of the mime structure of + * the message. This is intended for debugging. + */ +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__*/