From 3e58bf2062be1323d7c7c021d40255458e28e74d Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 30 Jun 2010 05:44:33 -0400 Subject: [PATCH] - Fix handling of messages with Content-Type: application/* and no filename (#1484050) --- program/include/rcube_message.php | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php index c3753b2..fac7fe8 100644 --- a/program/include/rcube_message.php +++ b/program/include/rcube_message.php @@ -488,6 +488,11 @@ 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; + } } -- Gitblit v1.9.1