Re: multipart/alternative not displaying in Yahoo.com

Sergey Poznyakoff <[email protected]>
Newsgroups gmane.comp.gnu.mailutils.bugs
Organization GNU.org.ua
Message-ID <[email protected]>
Hi Jean,

Please try this.

Regards,
Sergey

_______________________________________________
Bug-mailutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-mailutils
0001-Fix-interaction-with-certain-mail-readers.patch (text/x-diff, 1003 B)
From f5c827b29160425092bc076f2e6907532cd27f84 Mon Sep 17 00:00:00 2001
From: Sergey Poznyakoff <[email protected]>
Date: Tue, 18 Apr 2017 11:12:23 +0300
Subject: [PATCH] Fix interaction with certain mail readers.

Reportedly, yahoo mail reader misinterprets the Content-Disposition
header set in multipart/alternative MIME parts.

* mail/send.c (saveatt): Don't set Content-Disposition for
multipart/alternative.
---
 mail/send.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mail/send.c b/mail/send.c
index 8d8de6c..df9881e 100644
--- a/mail/send.c
+++ b/mail/send.c
@@ -484,7 +484,7 @@ saveatt (void *item, void *data)
   mu_mime_get_num_parts	(env->mime, &nparts);
   mu_message_get_header (part, &hdr);
   if (env->alt)
-    mu_header_set_value (hdr, MU_HEADER_CONTENT_DISPOSITION, "inline", 1);
+    mu_header_remove (hdr, MU_HEADER_CONTENT_DISPOSITION, 1);
   mu_rfc2822_msg_id (nparts, &p);
   mu_header_set_value (hdr, MU_HEADER_CONTENT_ID, p, 1);
   free (p);
-- 
1.7.12.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.