Added tny_mime_part_set_transfer_encoding usage when forwarding
authorPhilip Van Hoof <philip@codeminded.be>
Sun, 3 Feb 2008 11:21:20 +0000 (11:21 +0000)
committerPhilip Van Hoof <philip@codeminded.be>
Sun, 3 Feb 2008 11:21:20 +0000 (11:21 +0000)
pmo-trunk-r4133

src/modest-tny-msg.c

index 6133225..d8fe96a 100644 (file)
@@ -305,7 +305,7 @@ add_attachments (TnyMimePart *part, GList *attachments_list, gboolean add_inline
                        attachment_part = copy_mime_part (old_attachment);
                        tny_mime_part_set_header_pair (attachment_part, "Content-Disposition", 
                                                       add_inline?"inline":"attachment");
-                       tny_mime_part_set_transfer_encoding (TNY_MIME_PART (part), "base64");
+                       tny_mime_part_set_transfer_encoding (TNY_MIME_PART (attachment_part), "base64");
                        tny_mime_part_add_part (TNY_MIME_PART (part), attachment_part);
                        if (old_cid)
                                tny_mime_part_set_content_id (attachment_part, old_cid);