Opened 2 years ago
Closed 21 months ago
#1487938 closed Bugs (fixed)
No content for multipart/alternative message with only one part
| Reported by: | mceccarellitnx | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.7-beta |
| Component: | MIME parsing | Version: | 0.5.2 |
| Severity: | major | Keywords: | message parse text/related |
| Cc: |
Description
showing a multipart/alternative message that are composed by
text/related
text/plain
are not shown because of prefer/html but there are no text/html so it is not showing at all.
my rude patch:
rcube_message.php
421 add text part if it matches the prefs
424 ($secondary_type == 'plain' && !$this->optprefer_html?)
425 ) {
426 $mail_part->type = 'content';
427 $this->parts[] = $mail_part;
428 }
Attachments (1)
Change History (6)
Changed 2 years ago by mceccarellitnx
comment:1 Changed 2 years ago by mceccarellitnx
- Severity changed from normal to major
comment:2 Changed 2 years ago by mceccarellitnx
- Summary changed from message with test/related showing blank to message with text/related showing blank
comment:3 Changed 2 years ago by alec
- Component changed from Core functionality to MIME parsing
- Milestone changed from later to 0.6-beta
comment:4 Changed 2 years ago by alec
- Summary changed from message with text/related showing blank to No content for multipart/alternative message with only one part
I've changed the subject to more appropriate. The message is multipart/alternative, but contains only text/plain part. When you have enabled displaying of HTML messages, its body will be not shown. No issue when,displaying of HTML messages is disabled.
comment:5 Changed 21 months ago by alec
- Resolution set to fixed
- Status changed from new to closed
Fixed in [e730cd24].

421 // add text part if it matches the prefs 422 //if (!$this->parse_alternative || 423 // ($secondary_type == 'html' && $this->opt['prefer_html']) || 424 // ($secondary_type == 'plain' && !$this->opt['prefer_html']) 425 //) { 426 $mail_part->type = 'content'; 427 $this->parts[] = $mail_part; 428 //}