Commit 7833cdc
committed
In email display, don't suppress text in standalone multipart/related
With PreferRichText enabled, RT's transaction display suppressed a
text/plain email part whose parent was multipart/related, on the
assumption that the part was an alternative representation that would be
superseded by a text/html sibling. When that root is text/plain, and no
text/html part is present, RT rendered an empty transaction even though
the content was available and visible via "View source".
Unlike multipart/alternative, a standalone multipart/related is not an
alternative container (RFC 2387). It has a single root part plus auxiliary
parts the root references, so a text/plain part should not always be
skipped.
multipart/related was originally included in the alternative-handling in
4a38585 to fix "duplicate message" display for the common MUA
structure:
multipart/alternative
text/plain # plain downgrade
multipart/related
text/html # composed rich body
image/png # inline embedded image
This commit retains that correct behavior, and now correctly displays
the contents of other multipart/related email that does not follow the
form above.
Fixes: I#381971 parent 1b6597d commit 7833cdc
1 file changed
Lines changed: 14 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
225 | 237 | | |
226 | 238 | | |
227 | 239 | | |
| |||
0 commit comments