Don't display PGP armored text data as separate part.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 10 Feb 2010 17:58:00 +0000 (10:58 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 10 Feb 2010 18:00:33 +0000 (11:00 -0700)
imp/lib/Contents.php
imp/lib/Mime/Viewer/Plain.php

index f921f12..c264652 100644 (file)
@@ -477,7 +477,8 @@ class IMP_Contents
 
         if (($textmode == 'inline') &&
             !strlen($ret[$mime_id]['data']) &&
-            $this->isAttachment($type)) {
+            $this->isAttachment($type) &&
+            !$viewer->embeddedMimeParts()) {
             if (empty($ret[$mime_id]['status'])) {
                 $ret[$mime_id]['status'] = array(
                     array(
index 5e03c20..c8d80fd 100644 (file)
@@ -58,7 +58,7 @@ class IMP_Horde_Mime_Viewer_Plain extends Horde_Mime_Viewer_Plain
         $mime_id = $this->_mimepart->getMimeId();
 
         if (isset(self::$_cache[$mime_id])) {
-            return null;
+            return array($mime_id => null);
         }
 
         // Trim extra whitespace in the text.