From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 2/2] wio-lib.pl: Fixes bug#13040 - Change multipart/mixed to multipart/alternative Date: Mon, 20 Feb 2023 17:30:02 +0100 Message-ID: <20230220163003.3434540-2-adolf.belka@ipfire.org> In-Reply-To: <20230220163003.3434540-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2638424917144755877==" List-Id: --===============2638424917144755877== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - Thunderbird and Roundcube mail clients presume that any mail with Content T= ype of multipart/mixed has an attachment included rather than actually checking f= or 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 simple= st solution is to change multipart/mixed to multipart/alternative as WIO Mail only sen= ds text without any attachment or other part to indicate that a client is active o= r inactive. - Confirmed on my vm testbed Fixes: Bug#13040 Tested-by: Adolf Belka Signed-off-by: Adolf Belka --- src/wio/wio-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 =3D> $mailsettings{'SENDER'}, To =3D> $mailsettings{'RECIPIENT'}, Subject =3D> $_[0], - Type =3D> 'multipart/mixed' + Type =3D> 'multipart/alternative' ); =20 $msg->attach( --=20 2.39.2 --===============2638424917144755877==--