summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-08-27 11:39:40 +0000
committerthomascube <thomas@roundcube.net>2006-08-27 11:39:40 +0000
commit58afbe954782a65a2a7c666ac4c6b6c69c2b80db (patch)
treeeab68ff50ada59fd4e48e58106c6b40c6a0b07d5
parentf7bfec96be8bf095ffc0af64a761f3866d5947b9 (diff)
Fixed message parsing problems (Ticket #1327068)
-rw-r--r--program/include/rcube_imap.inc4
1 files changed, 2 insertions, 2 deletions
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']);