[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] multipart/alternative not displaying in Yahoo.com

From: Sergey Poznyakoff
Subject: Re: [bug-mailutils] multipart/alternative not displaying in Yahoo.com
Date: Tue, 18 Apr 2017 11:20:32 +0300

Hi Jean,

Please try this.


>From f5c827b29160425092bc076f2e6907532cd27f84 Mon Sep 17 00:00:00 2001
From: Sergey Poznyakoff <address@hidden>
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
 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);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]