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

src/modest-tny-msg.c

index 9fa15a1..6133225 100644 (file)
@@ -305,6 +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_add_part (TNY_MIME_PART (part), attachment_part);
                        if (old_cid)
                                tny_mime_part_set_content_id (attachment_part, old_cid);