Text parts were not being caught here since they all potentially have embedded parts
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 19 Feb 2010 16:52:29 +0000 (09:52 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 19 Feb 2010 18:23:16 +0000 (11:23 -0700)
imp/lib/Contents.php

index c264652..f8969e4 100644 (file)
@@ -475,10 +475,10 @@ class IMP_Contents
             $ret[$mime_id]['name'] = $mime_part->getName(true);
         }
 
-        if (($textmode == 'inline') &&
+        if (!is_null($ret[$mime_id]['data']) &&
+            ($textmode == 'inline') &&
             !strlen($ret[$mime_id]['data']) &&
-            $this->isAttachment($type) &&
-            !$viewer->embeddedMimeParts()) {
+            $this->isAttachment($type)) {
             if (empty($ret[$mime_id]['status'])) {
                 $ret[$mime_id]['status'] = array(
                     array(