From: Alberto Garcia Date: Wed, 12 Dec 2007 18:42:15 +0000 (+0000) Subject: Add correctly the "Content-Disposition" header to attachments X-Git-Tag: git_migration_finished~1933 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=11a31802a2dedb9672769e27dafabacf404d02f3 Add correctly the "Content-Disposition" header to attachments in modest-tny-msg pmo-trunk-r3905 --- diff --git a/src/modest-tny-msg.c b/src/modest-tny-msg.c index 6cdbbd3..8608447 100644 --- a/src/modest-tny-msg.c +++ b/src/modest-tny-msg.c @@ -290,9 +290,9 @@ add_attachments (TnyMimePart *part, GList *attachments_list, gboolean add_inline old_attachment = pos->data; if (!tny_mime_part_is_purged (old_attachment)) { attachment_part = copy_mime_part (old_attachment); - tny_mime_part_add_part (TNY_MIME_PART (part), attachment_part); tny_mime_part_set_header_pair (attachment_part, "Content-Disposition", add_inline?"inline":"attachment"); + tny_mime_part_add_part (TNY_MIME_PART (part), attachment_part); g_object_unref (attachment_part); } }