summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-06-30 09:44:33 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-06-30 09:44:33 +0000
commit5164328f9d632e1d9443569e03e1607bc7e8187b (patch)
tree1bc18b252942e6b1a9e812ef2287c95343a3ca29
parente8fa868c5e6d0be648cb10e6e774f589e7ce89c2 (diff)
- Fix handling of messages with Content-Type: application/* and no filename (#1484050)
git-svn-id: https://svn.roundcube.net/trunk@3795 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/CHANGELOG1
-rw-r--r--roundcubemail/program/include/rcube_message.php5
2 files changed, 6 insertions, 0 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG
index 6348729c9..4c66adba5 100644
--- a/roundcubemail/CHANGELOG
+++ b/roundcubemail/CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail
===========================
+- Fix handling of messages with Content-Type: application/* and no filename (#1484050)
- Improved compose screen: resizable body and attachments list, vertical splitter, options menu
- Fix RC forgets search results (#1483883)
- TinyMCE 3.3.7
diff --git a/roundcubemail/program/include/rcube_message.php b/roundcubemail/program/include/rcube_message.php
index c3753b290..fac7fe86b 100644
--- a/roundcubemail/program/include/rcube_message.php
+++ b/roundcubemail/program/include/rcube_message.php
@@ -488,6 +488,11 @@ class rcube_message
else if ($structure->filename) {
$this->attachments[] = $structure;
}
+ // message is a single part non-text (without filename)
+ else if (preg_match('/application\//i', $mimetype)) {
+ $structure->filename = 'Part '.$structure->mime_id;
+ $this->attachments[] = $structure;
+ }
}