summaryrefslogtreecommitdiff
path: root/program/include/rcube_message.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-09-17 22:04:16 +0200
committerThomas Bruederli <thomas@roundcube.net>2012-09-17 22:04:16 +0200
commit8f098e8dead85b6512ac72b2d805314baec72a2f (patch)
tree96b89dbcc2a58dab0f2dd1183beef3036c13287f /program/include/rcube_message.php
parent99d9f50a0000447d0a752e6c43716237dc0da176 (diff)
parent6898b420ed4eb2bd2d1933758cde27bdd305d72a (diff)
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/include/rcube_message.php')
-rw-r--r--program/include/rcube_message.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php
index 6af1d0133..fe2fcf354 100644
--- a/program/include/rcube_message.php
+++ b/program/include/rcube_message.php
@@ -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') {