IMP specific RFC 822 viewer no longer needed.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 11 Nov 2008 12:00:41 +0000 (05:00 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 11 Nov 2008 12:00:41 +0000 (05:00 -0700)
imp/config/mime_drivers.php.dist
imp/lib/Mime/Viewer/rfc822.php [deleted file]
imp/themes/graphics/mime/mail.png [deleted file]

index 468125f..05ff22e 100644 (file)
@@ -26,7 +26,6 @@
  * pkcs7          S/MIME signed/encrypted messages
  * plain          URL syntax highlighting for text/plain parts
  * related        multipart/related parts
- * rfc822         Digested messages
  * status         Mail delivery status messages
  * tnef           MS-TNEF attachments
  * zip            ZIP attachments
@@ -34,7 +33,7 @@
 $mime_drivers_map['imp']['registered'] = array(
     'alternative', 'appledouble', 'enriched', 'html', 'images', 'itip',
     'notification', 'partial', 'pdf', 'pgp', 'pkcs7', 'plain', 'related',
-    'rfc822', 'smil', 'status', 'tnef', 'zip'
+    'smil', 'status', 'tnef', 'zip'
 );
 
 /**
@@ -164,19 +163,6 @@ $mime_drivers['imp']['pkcs7'] = array(
 );
 
 /**
- * Digest message (message/rfc822) settings
- */
-$mime_drivers['imp']['rfc822'] = array(
-    'inline' => false,
-    'handles' => array(
-        'message/rfc822'
-    ),
-    'icons' => array(
-        'default' => 'mail.png'
-    )
-);
-
-/**
  * Zip File Attachments settings
  */
 $mime_drivers['imp']['zip'] = array(
diff --git a/imp/lib/Mime/Viewer/rfc822.php b/imp/lib/Mime/Viewer/rfc822.php
deleted file mode 100644 (file)
index d15dbd3..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/**
- * The IMP_Horde_Mime_Viewer_rfc822 class renders out messages from
- * message/rfc822 content types.
- *
- * Copyright 2002-2008 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (GPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
- *
- * @author  Michael Slusarz <slusarz@horde.org>
- * @package Horde_Mime
- */
-class IMP_Horde_Mime_Viewer_rfc822 extends Horde_Mime_Viewer_rfc822
-{
-    /**
-     * Render out the currently set contents.
-     *
-     * @param array $params  An array with a reference to a MIME_Contents
-     *                       object.
-     *
-     * @return string  The rendered text in HTML.
-     */
-    public function render($params)
-    {
-        $contents = &$params[0];
-
-        /* Get the entire body part of the message/rfc822 contents. */
-        if (!$this->mime_part->getInformation('imp_contents_set') &&
-            is_a($contents, 'IMP_Contents') &&
-            $this->mime_part->getMIMEId()) {
-            $this->mime_part = &$contents->getDecodedMIMEPart($this->mime_part->getMIMEId(), true);
-        }
-
-        return parent::render();
-    }
-
-    /**
-     * Render out attachment information.
-     *
-     * @param array $params  An array with a reference to a MIME_Contents
-     *                       object.
-     *
-     * @return string  The rendered text in HTML.
-     */
-    public function renderAttachmentInfo($params)
-    {
-        $contents = &$params[0];
-
-        if (is_a($contents, 'IMP_Contents') &&
-            !$this->mime_part->getContents()) {
-            $id = $this->mime_part->getMIMEId();
-            $hdr_id = substr($id, -2);
-            if ($hdr_id != '.0') {
-                $id .= '.0';
-            }
-            $this->mime_part = &$contents->getDecodedMIMEPart($id);
-        }
-
-        return parent::renderAttachmentInfo();
-    }
-}
diff --git a/imp/themes/graphics/mime/mail.png b/imp/themes/graphics/mime/mail.png
deleted file mode 100644 (file)
index 23668db..0000000
Binary files a/imp/themes/graphics/mime/mail.png and /dev/null differ