X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodest-tny-msg.h;h=f83eb2f4b485b02d54d200c162f6e06d13a637aa;hb=a9c81baad06ccbc6da7549a51bb1e6da27c8afb0;hp=95bfbc688c29e215f2c2b1943d69a0dd597b54da;hpb=b9b928dee5f5169c3317df86b153b4d069b814d0;p=modest diff --git a/src/modest-tny-msg.h b/src/modest-tny-msg.h index 95bfbc6..f83eb2f 100644 --- a/src/modest-tny-msg.h +++ b/src/modest-tny-msg.h @@ -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,20 @@ 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_msg_get_header: + * @self: some #TnyMsg + * @header: the header to get + * + * gets the mail header for a #TnyMsg as a newly allocated string, + * or NULL if it cannot be found + * + * Returns: the header + **/ +gchar* modest_tny_msg_get_header (TnyMsg *msg, const gchar *header); + + /** * modest_tny_msg_create_forward_msg: * @msg: a valid #TnyMsg instance