6.0.0-beta1
7/7/25

[#13696] IMP no display test/plain mime part
Summary IMP no display test/plain mime part
Queue IMP
Queue Version 6.1.7
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester patrice.borel (at) univ-tlse3 (dot) fr
Created 11/17/2014 (3885 days ago)
Due
Updated 11/19/2014 (3883 days ago)
Assigned
Resolved 11/17/2014 (3885 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/19/2014 11:44:48 AM Michael Slusarz Comment #6 Reply to this comment
So it seems we're sort-of caught in a loop : since IMP _can_ display 
HTML, it won't display text/plain but since it is _not configured_ 
to display HTML by default (out of rightful reasons), the final user 
is doomed to have those messages contents displayed in a new window.
Am I getting you right ?
No.  I have no problem seeing plaintext parts in related messages 
displayed inline.  (Nor have i heard anyone else with this issue.)
11/19/2014 11:41:59 AM Michael Slusarz Comment #5 Reply to this comment
Consecutively, according to RFC, it should display another part.
It does.

I can confirm a multipart/alternative message of the following structure:

   - text/plain
   - multipart/related
     - text/html
     - [...]

Will display the text/plain part if HTML inline display is off.
11/18/2014 09:06:48 AM phep-lists (at) teletopie (dot) net Comment #4 Reply to this comment
Hi,

[Show Quoted Text - 10 lines]
I think one can get your point, the problem is that Horde's admin FAQ 
plainly says :
   « Enabling inline HTML attachments is discouraged »

... which no one would deny and probably not the original reporter !

So it seems we're sort-of caught in a loop : since IMP _can_ display 
HTML, it won't display text/plain but since it is _not configured_ to 
display HTML by default (out of rightful reasons), the final user is 
doomed to have those messages contents displayed in a new window.

Am I getting you right ?

phep
11/18/2014 09:02:06 AM patrice (dot) borel (at) univ-tlse3 (dot) fr Comment #3 Reply to this comment
Thanks a lot,
This is correct behavior.
RFC 2046 [5.1.4] (http://tools.ietf.org/html/rfc2046#section-5.1.4):
We display the richest content of the related part we can.  This is 
correct behavior.
But, in configuration, the html inline display is not allowed. So 
Horde cannot display Multipart/Related, the richest format. 
Consecutively, according to RFC, it should display another part.
Best regards,
P.Borel
11/17/2014 05:09:58 PM Michael Slusarz Comment #2
State ⇒ Not A Bug
Reply to this comment
Hi,
IMP don't display text/plain mime part in this case:
The message is enclosed in Multipart/Alternative messages with 2 subparts:
- A "text/plain" mime part
- A "multipart/relative" mime part which enclose several basic mime 
type (text/html, image/png)...
IMP don't display text/plain message inline in the main browsing 
panel. We need to open the message part separately.
This is correct behavior.

RFC 2046 [5.1.4] (http://tools.ietf.org/html/rfc2046#section-5.1.4):

    Receiving user agents should pick and display the last format
    they are capable of displaying...What is most critical, however, is that
    the user not automatically be shown multiple versions of the same data.

We display the richest content of the related part we can.  This is 
correct behavior.  You can use the show all parts button  to display 
any other part that isn't shown.
11/17/2014 02:27:11 PM patrice (dot) borel (at) univ-tlse3 (dot) fr Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ IMP no display test/plain mime part
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi,
IMP don't display text/plain mime part in this case:
The message is enclosed in Multipart/Alternative messages with 2 subparts:
- A "text/plain" mime part
- A "multipart/relative" mime part which enclose several basic mime 
type (text/html, image/png)...
IMP don't display text/plain message inline in the main browsing 
panel. We need to open the message part separately.

It's possible to display mime text/plain sub-part if another sub-parts 
are not multipart/relative.

The RFC spécification 1342 
(http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html)  says that:
In general, user agents that compose multipart/alternative entities 
should place the body parts in increasing order of preference, that 
is, with the preferred format last. For fancy text, the sending user 
agent should put the plainest format first and the richest format 
last. Receiving user agents should pick and display the last format 
they are capable of displaying. In the case where one of the 
alternatives is itself of type "multipart" and contains unrecognized 
sub-parts, the user agent may choose either to show that alternative, 
an earlier alternative, or both.

So, it seems IMP's behavior is not correct. Is it just ? Is there a 
patch or a configuration's rule to correct that ?
I join an example.
Best regards,
Patrice Borel

Saved Queries