]> git.ipfire.org Git - ipfire-2.x.git/commit
wio-lib.pl: Fixes bug#13040 - Change multipart/mixed to multipart/alternative
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 20 Feb 2023 16:30:02 +0000 (17:30 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 4 Mar 2023 14:05:42 +0000 (14:05 +0000)
commitc151ca241bfea1ea84b92269cd824971aabea732
tree451e26dc8e3e28d31a772db9a94124256538a0b5
parent670981e64870b43981617560ce96b41db3a462fb
wio-lib.pl: 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 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