Bug 400565 - Correctly deal with multiple multipart/alternative parts in a single message
Summary: Correctly deal with multiple multipart/alternative parts in a single message
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.8.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-01 21:00 UTC by Erik Quaeghebeur
Modified: 2022-12-02 05:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example message with two multipart/alternative parts (2.38 KB, message/rfc822)
2018-11-01 21:00 UTC, Erik Quaeghebeur
Details
Current display of example message with multiple multipart/alternative parts (100.65 KB, image/png)
2018-11-01 21:02 UTC, Erik Quaeghebeur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2018-11-01 21:00:53 UTC
Created attachment 116031 [details]
Example message with two multipart/alternative parts

SUMMARY
KMail does not seem to deal correctly with messages with multiple multipart/alternative parts. It should treat them equally.

STEPS TO REPRODUCE
1. Open message with multiple multipart/alternative parts
2. Look at how it is displayed

OBSERVED RESULT
Only the first multipart/alternative part is displayed as such

EXPECTED RESULT
All multipart/alternative parts are displayed as such

ADDITIONAL INFORMATION
Comment 1 Erik Quaeghebeur 2018-11-01 21:02:25 UTC
Created attachment 116033 [details]
Current display of example message with multiple multipart/alternative parts

Notice in the attached screenshot how currently the second multipart/alternative part is not detected as such correctly.
Comment 2 Laurent Montel 2018-11-02 06:27:43 UTC
Do you have an apps which work correctly ?
Thunderbird as kmail displays the two parts.

How we will detect which part we must to display ?
Comment 3 Erik Quaeghebeur 2018-11-02 07:13:45 UTC
(In reply to Laurent Montel from comment #2)
> Do you have an apps which work correctly ?
Me not, but it apears NeoMutt suports it: https://neomutt.org/guide/mimesupport#6-%C2%A0mime-multipart-multilingual
 
> How we will detect which part we must to display ?
Display the one with "Content-Translation-Type: original" by default and another in case a user setting indicates a preference for the other language. That user setting can be the application/desktop language or a setting that is added to kmail/kontact where users can give an ordered list of language preferences. (I think the RFC also contains some guidelines.)

There remains the question of how to allow a user to select another translation. That may be out of scope of this bug report as it would best be compatible with how multipart/alernative display choices are made.
Comment 4 Laurent Montel 2018-11-02 15:06:31 UTC
(In reply to Erik Quaeghebeur from comment #3)
> (In reply to Laurent Montel from comment #2)
> > Do you have an apps which work correctly ?
> Me not, but it apears NeoMutt suports it:
> https://neomutt.org/guide/mimesupport#6-%C2%A0mime-multipart-multilingual

ok it seems :)

>  
> > How we will detect which part we must to display ?
> Display the one with "Content-Translation-Type: original" by default and
> another in case a user setting indicates a preference for the other
> language. That user setting can be the application/desktop language or a
> setting that is added to kmail/kontact where users can give an ordered list
> of language preferences. (I think the RFC also contains some guidelines.)

Ok I see.

> 
> There remains the question of how to allow a user to select another
> translation.

good question :)

> That may be out of scope of this bug report as it would best be
> compatible with how multipart/alernative display choices are made.
Comment 5 Erik Quaeghebeur 2018-11-03 11:29:59 UTC
(In reply to Laurent Montel from comment #4)
> > There remains the question of how to allow a user to select another
> > translation.
> good question :)
Because this feature is currently not much used, as almost no mailers support it yet, I would think it would be premature to put much effort in interface elements for this. A boxed dialog such as the one for loading external HTML content should suffice for now. If ever the feature takes off, there is always time for adapting the interface.

(Of course I don't assume you'll find the time to implement it, but perhaps it is something you find worthwhile or fun!)
Comment 6 Justin Zobel 2022-12-02 01:22:48 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 7 Erik Quaeghebeur 2022-12-02 05:52:13 UTC
Still not supported and still fails ungracefully.