|
|
@ -579,8 +579,10 @@ class rcube_message
|
|
|
|
$related_part = $p;
|
|
|
|
$related_part = $p;
|
|
|
|
else if ($sub_mimetype == 'text/plain' && !$plain_part)
|
|
|
|
else if ($sub_mimetype == 'text/plain' && !$plain_part)
|
|
|
|
$plain_part = $p;
|
|
|
|
$plain_part = $p;
|
|
|
|
else if ($sub_mimetype == 'text/html' && !$html_part)
|
|
|
|
else if ($sub_mimetype == 'text/html' && !$html_part) {
|
|
|
|
$html_part = $p;
|
|
|
|
$html_part = $p;
|
|
|
|
|
|
|
|
$this->got_html_part = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
else if ($sub_mimetype == 'text/enriched' && !$enriched_part)
|
|
|
|
else if ($sub_mimetype == 'text/enriched' && !$enriched_part)
|
|
|
|
$enriched_part = $p;
|
|
|
|
$enriched_part = $p;
|
|
|
|
else {
|
|
|
|
else {
|
|
|
@ -705,7 +707,7 @@ class rcube_message
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
|
|
if ($part_mimetype == 'text/html' && $mail_part->size) {
|
|
|
|
if ($part_mimetype == 'text/html' && $mail_part->size) {
|
|
|
|
$got_html_part = true;
|
|
|
|
$this->got_html_part = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$mail_part = $plugin['structure'];
|
|
|
|
$mail_part = $plugin['structure'];
|
|
|
@ -825,7 +827,7 @@ class rcube_message
|
|
|
|
// MS Outlook sends sometimes non-related attachments as related
|
|
|
|
// MS Outlook sends sometimes non-related attachments as related
|
|
|
|
// In this case multipart/related message has only one text part
|
|
|
|
// In this case multipart/related message has only one text part
|
|
|
|
// We'll add all such attachments to the attachments list
|
|
|
|
// We'll add all such attachments to the attachments list
|
|
|
|
if (!isset($got_html_part) && empty($inline_object->content_id)) {
|
|
|
|
if (!isset($this->got_html_part)) {
|
|
|
|
$this->attachments[] = $inline_object;
|
|
|
|
$this->attachments[] = $inline_object;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// MS Outlook sometimes also adds non-image attachments as related
|
|
|
|
// MS Outlook sometimes also adds non-image attachments as related
|
|
|
|