]> git.ipfire.org Git - ipfire-2.x.git/commit
mail.cgi: Fixes bug#13040 - Change multipart/mixed to multipart/alternative
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 20 Feb 2023 16:30:01 +0000 (17:30 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 4 Mar 2023 14:05:42 +0000 (14:05 +0000)
commit670981e64870b43981617560ce96b41db3a462fb
treebe4bec2da8b9074ae194fad57f848885edfe921c
parentd8827c30ee1a28c41f0b7d9d4b066f31307352be
mail.cgi: Fixes bug#13040 - Change multipart/mixed to multipart/alternative

- 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 the Mail Service test mail only
   sends text without any attachment or other part.
- 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>
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
html/cgi-bin/mail.cgi