Fixed message parsing problems (Ticket #1327068)

release-0.6
thomascube 18 years ago
parent f7bfec96be
commit 58afbe9547

@ -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']);

Loading…
Cancel
Save