* show the right body part for the message (this partly fixes NB#78955)
[modest] / src / modest-tny-msg.h
index 95bfbc6..d24af7d 100644 (file)
@@ -115,7 +115,7 @@ TnyMimePart*  modest_tny_msg_find_body_part  (TnyMsg * self, gboolean want_html)
 
 /**
  * modest_tny_msg_find_body:
- * @self: 
+ * @self: some #TnyMsg
  * @want_html: 
  * @is_html: if the original body was html or plain text
  * 
@@ -128,6 +128,22 @@ TnyMimePart*  modest_tny_msg_find_body_part  (TnyMsg * self, gboolean want_html)
 gchar*        modest_tny_msg_get_body        (TnyMsg *self, gboolean want_html, gboolean *is_html);
 
 
+
+/**
+ * modest_tny_mime_part_get_header_value:
+ * @self: some #TnyMimePart
+ * @header: the header to get the value for
+ * 
+ * gets the mail header value for a #TnyMimePart as a newly allocated string,
+ * or NULL if it cannot be found
+ * 
+ * NOTE: this function should be part of tinymail, or maybe modest-tny-mime-part....
+ *
+ * Returns: the header value or NULL
+ **/
+gchar*       modest_tny_mime_part_get_header_value (TnyMimePart *part, const gchar *header);
+
+
 /**
  * modest_tny_msg_create_forward_msg:
  * @msg: a valid #TnyMsg instance