[dev] patch for imp/lib/MIME/Viewer/html.php

Chris chris at jeks.net
Sat Dec 7 14:30:31 2002


html.php seems to still be using getMimeID which is not there.

Checked the code in lib/MIME/Contents.php and it should be using getCID ...

Changed it and it displays HTML emails again. Patch attached.

 -chris

-- 
~ ~ ~
Chris Hyde

The sooner you fall behind, the more time you'll have to catch up.

~ ~ ~
-------------- next part --------------
Index: imp/lib/MIME/Viewer/html.php
===================================================================
RCS file: /repository/imp/lib/MIME/Viewer/html.php,v
retrieving revision 1.27
diff -c -r1.27 html.php
*** imp/lib/MIME/Viewer/html.php	21 Nov 2002 22:50:09 -0000	1.27
--- imp/lib/MIME/Viewer/html.php	7 Dec 2002 14:26:03 -0000
***************
*** 108,117 ****
          }
  
          /* Search for inlined images that we can display. */
!         $MimeID = $contents->getMimeID();
          if ($contents->viewAsAttachment() && empty($MimeID)) {
              $contents->getMIMEStructure($mime->getInformation('index'), true);
!             $MimeID = $contents->getMimeID();
          }
          if (!empty($MimeID)) {
              foreach ($MimeID as $ref => $id) {
--- 108,117 ----
          }
  
          /* Search for inlined images that we can display. */
!         $MimeID = $contents->getCID();
          if ($contents->viewAsAttachment() && empty($MimeID)) {
              $contents->getMIMEStructure($mime->getInformation('index'), true);
!             $MimeID = $contents->getCID();
          }
          if (!empty($MimeID)) {
              foreach ($MimeID as $ref => $id) {


More information about the dev mailing list