From 58afbe954782a65a2a7c666ac4c6b6c69c2b80db Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Sun, 27 Aug 2006 07:39:40 -0400
Subject: [PATCH] Fixed message parsing problems (Ticket #1327068)

---
 program/include/rcube_imap.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc
index dbb00a5..23636dc 100644
--- a/program/include/rcube_imap.inc
+++ b/program/include/rcube_imap.inc
@@ -932,9 +932,9 @@
       
       $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']);

--
Gitblit v1.9.1