summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-08-27 11:39:40 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-08-27 11:39:40 +0000
commit7e1b026f4ace01f90b2b3483cc31d0270daf4126 (patch)
tree24eef94bbbfae7fc3b1441c216cee746890838fe /roundcubemail/program
parent12c7e7b88c581c3cf8e07a85d587a6add927d750 (diff)
Fixed message parsing problems (Ticket #1327068)
git-svn-id: https://svn.roundcube.net/trunk@326 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/include/rcube_imap.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_imap.inc b/roundcubemail/program/include/rcube_imap.inc
index dbb00a5cf..23636dc35 100644
--- a/roundcubemail/program/include/rcube_imap.inc
+++ b/roundcubemail/program/include/rcube_imap.inc
@@ -932,9 +932,9 @@ class rcube_imap
$struct = &$this->_structure_part($structure);
$struct->headers = get_object_vars($headers);
-
+
// don't trust given content-type
- if (empty($struct->parts))
+ if (empty($struct->parts) && !empty($struct->headers['ctype']))
{
$struct->mime_id = '1';
$struct->mimetype = strtolower($struct->headers['ctype']);