X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-formatter.c;h=e54154e34d79cb369cbef80eb336ea4debb0bdc1;hp=f055b0a77bb3188c1132cb3bf22d2666d2fb0672;hb=d8f84008fa1e26dc63a2aaf44fd37da8bdfc6207;hpb=b9b928dee5f5169c3317df86b153b4d069b814d0 diff --git a/src/modest-formatter.c b/src/modest-formatter.c index f055b0a..e54154e 100644 --- a/src/modest-formatter.c +++ b/src/modest-formatter.c @@ -76,7 +76,7 @@ extract_text (ModestFormatter *self, TnyMimePart *body) buf = gtk_text_buffer_new (NULL); stream = TNY_STREAM (tny_gtk_text_buffer_stream_new (buf)); tny_stream_reset (stream); - tny_mime_part_decode_to_stream (body, stream); + tny_mime_part_decode_to_stream (body, stream, NULL); tny_stream_reset (stream); g_object_unref (G_OBJECT(stream)); @@ -114,7 +114,7 @@ construct_from_text (TnyMimePart *part, /* Construct MIME part */ tny_stream_reset (text_body_stream); - tny_mime_part_construct_from_stream (part, text_body_stream, content_type); + tny_mime_part_construct (part, text_body_stream, content_type, "7bit"); tny_stream_reset (text_body_stream); /* Clean */ @@ -179,9 +179,7 @@ modest_formatter_attach (ModestFormatter *self, TnyMsg *msg, TnyHeader *header) TnyMsg *new_msg = NULL; TnyMimePart *body_part = NULL; ModestFormatterPrivate *priv; - TnyPlatformFactory *fact; - fact = modest_runtime_get_platform_factory (); /* Build new part */ new_msg = modest_formatter_create_message (self, TRUE, TRUE, FALSE); body_part = modest_formatter_create_body_part (self, new_msg);