X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-tny-mime-part.h;h=91a54f20d9c4ab40667dfc05dbc981947361ad9f;hb=1b31735fc831da10d9c03a3d798be72027f19f01;hp=b1c577c33dd4b9d42f5c9bd92d4c0083a9972f46;hpb=12fe7988e34a4ba22a68f687db4993e12578a9b2;p=modest diff --git a/src/modest-tny-mime-part.h b/src/modest-tny-mime-part.h index b1c577c..91a54f2 100644 --- a/src/modest-tny-mime-part.h +++ b/src/modest-tny-mime-part.h @@ -56,4 +56,25 @@ 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); + #endif /*__MODEST_TNY_MIME_PART_H__*/