summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-18 20:48:04 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-18 20:48:04 +0000
commit979ef9a056d8537e0a47b7e9ec4ba78f3d2199c4 (patch)
tree1d993f5cef71076c3a0ab68514ef617b0edb169c /roundcubemail/program/include
parent909b835b156fd2a62c2ca22e4f24cc66742fa399 (diff)
Also list message/rfc822 parts as attachment if a filename is specified
git-svn-id: https://svn.roundcube.net/trunk@1837 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
-rw-r--r--roundcubemail/program/include/rcube_message.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_message.php b/roundcubemail/program/include/rcube_message.php
index f2e4be3ef..10b9e8e41 100644
--- a/roundcubemail/program/include/rcube_message.php
+++ b/roundcubemail/program/include/rcube_message.php
@@ -345,6 +345,10 @@ class rcube_message
// part message/*
else if ($primary_type=='message') {
$this->parse_structure($mail_part, true);
+
+ // list as attachment as well (mostly .eml)
+ if (!empty($mail_part->filename))
+ $this->attachments[] = $mail_part;
}
// ignore "virtual" protocol parts
else if ($primary_type == 'protocol')