List related text/html part as attachment in plain text mode (#1488677)

This commit is contained in:
Aleksander Machniak
2012-09-17 10:48:15 +02:00
parent fa57c98854
commit f7c11e862f
2 changed files with 7 additions and 1 deletions

View File

@@ -494,8 +494,13 @@ class rcube_message
}
// list as attachment as well
if (!empty($mail_part->filename))
if (!empty($mail_part->filename)) {
$this->attachments[] = $mail_part;
}
// list html part as attachment (here the part is most likely inside a multipart/related part)
else if ($this->parse_alternative && ($secondary_type == 'html' && !$this->opt['prefer_html'])) {
$this->attachments[] = $mail_part;
}
}
// part message/*
else if ($primary_type == 'message') {