From 7e1b026f4ace01f90b2b3483cc31d0270daf4126 Mon Sep 17 00:00:00 2001 From: thomasb Date: Sun, 27 Aug 2006 11:39:40 +0000 Subject: Fixed message parsing problems (Ticket #1327068) git-svn-id: https://svn.roundcube.net/trunk@326 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_imap.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roundcubemail/program/include') 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']); -- cgit v1.2.3