X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-formatter.h;h=15c00ed3c6a4f196fed05ce5bf984a941a3eed5d;hp=6ddbdd6c57b8822989cca6debcb61e890471d191;hb=e45958deaf9701399c552ea0d84c2447efacd4ca;hpb=1310c638b65414fad9be0ed2fcfb93a5cbc23433 diff --git a/src/modest-formatter.h b/src/modest-formatter.h index 6ddbdd6..15c00ed 100644 --- a/src/modest-formatter.h +++ b/src/modest-formatter.h @@ -167,13 +167,14 @@ TnyMsg * modest_formatter_inline (ModestFormatter *self, TnyMimePart *part, TnyH * * Returns: a newly formatted #TnyMsg or NULL in case of error **/ -TnyMsg * modest_formatter_attach (ModestFormatter *self, TnyMimePart *part, TnyHeader *header); +TnyMsg * modest_formatter_attach (ModestFormatter *self, TnyMsg *msg, TnyHeader *header); /** * modest_formatter_create_message: * @self: a #ModestFormatter * @single_body: a #gboolean * @has_attachments: a #gboolean + * @has_images: a #gboolean * * Creates an empty #TnyMsg with the expected parts for Modest * formatters and body embedders. @@ -186,8 +187,12 @@ TnyMsg * modest_formatter_attach (ModestFormatter *self, TnyMimePart *part, TnyH * If @single_body is %TRUE, the body will be stored as a * "multipart/alternative", and the parts will be the different * alternatives. If %FALSE, this body will be stored directly. + * + * If @has_images is %TRUE, the body will be embedded in a + * multipart/related, that will also host attached images. */ -TnyMsg * modest_formatter_create_message (ModestFormatter *self, gboolean single_body, gboolean has_attachments); +TnyMsg * modest_formatter_create_message (ModestFormatter *self, gboolean single_body, + gboolean has_attachments, gboolean has_images); /** * modest_formatter_create_body_part: