From 5164328f9d632e1d9443569e03e1607bc7e8187b Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 30 Jun 2010 09:44:33 +0000 Subject: - 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 --- roundcubemail/program/include/rcube_message.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roundcubemail/program/include') 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; + } } -- cgit v1.2.3