From 58afbe954782a65a2a7c666ac4c6b6c69c2b80db Mon Sep 17 00:00:00 2001 From: thomascube Date: Sun, 27 Aug 2006 11:39:40 +0000 Subject: Fixed message parsing problems (Ticket #1327068) --- program/include/rcube_imap.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program/include/rcube_imap.inc') diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc index dbb00a5cf..23636dc35 100644 --- a/program/include/rcube_imap.inc +++ b/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