[2/2] wio-lib.pl: Fixes bug#13040 - Change multipart/mixed to multipart/alternative

Message ID 20230220163003.3434540-2-adolf.belka@ipfire.org
State Accepted
Commit c151ca241bfea1ea84b92269cd824971aabea732
Headers
Series [1/2] mail.cgi: Fixes bug#13040 - Change multipart/mixed to multipart/alternative |

Commit Message

Adolf Belka Feb. 20, 2023, 4:30 p.m. UTC
  - Thunderbird and Roundcube mail clients presume that any mail with Content Type of
   multipart/mixed has an attachment included rather than actually checking for
   disposition attachment. This means that any mail with multipart/mixed gets the
   attachment icon marked up even though there is no attachment.
- Although this is a problem of the clients involved, in this case the simplest solution
   is to change multipart/mixed to multipart/alternative as WIO Mail only sends text
   without any attachment or other part to indicate that a client is active or inactive.
- Confirmed on my vm testbed

Fixes: Bug#13040
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 src/wio/wio-lib.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/src/wio/wio-lib.pl b/src/wio/wio-lib.pl
index eb7b33e7d..46de7be2f 100644
--- a/src/wio/wio-lib.pl
+++ b/src/wio/wio-lib.pl
@@ -157,7 +157,7 @@  sub mailsender {
 		From	=> $mailsettings{'SENDER'},
 		To		=> $mailsettings{'RECIPIENT'},
 		Subject	=> $_[0],
-		Type	=> 'multipart/mixed'
+		Type	=> 'multipart/alternative'
 	);
 
 	$msg->attach(