Decode the mime part when copying it
authorAlberto Garcia <agarcia@igalia.com>
Mon, 11 Feb 2008 15:55:06 +0000 (15:55 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Mon, 11 Feb 2008 15:55:06 +0000 (15:55 +0000)
Fixes NB#78802

pmo-trunk-r4159

src/modest-tny-msg.c

index e1ad4eb..f711496 100644 (file)
@@ -251,7 +251,7 @@ copy_mime_part (TnyMimePart *part)
        attachment_cid = tny_mime_part_get_content_id (part);
        
        /* fill the stream */
-       attachment_stream = tny_mime_part_get_stream (part);
+       attachment_stream = tny_mime_part_get_decoded_stream (part);
        enc = tny_mime_part_get_transfer_encoding (part);
        tny_stream_reset (attachment_stream);
        tny_mime_part_construct (result,