From b478192d14c48a10b02b912e1275b877f3b16819 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 11 Nov 2008 05:00:41 -0700 Subject: [PATCH] IMP specific RFC 822 viewer no longer needed. --- imp/config/mime_drivers.php.dist | 16 +--------- imp/lib/Mime/Viewer/rfc822.php | 62 -------------------------------------- imp/themes/graphics/mime/mail.png | Bin 597 -> 0 bytes 3 files changed, 1 insertion(+), 77 deletions(-) delete mode 100644 imp/lib/Mime/Viewer/rfc822.php delete mode 100644 imp/themes/graphics/mime/mail.png diff --git a/imp/config/mime_drivers.php.dist b/imp/config/mime_drivers.php.dist index 468125f23..05ff22ec4 100644 --- a/imp/config/mime_drivers.php.dist +++ b/imp/config/mime_drivers.php.dist @@ -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 index d15dbd342..000000000 --- a/imp/lib/Mime/Viewer/rfc822.php +++ /dev/null @@ -1,62 +0,0 @@ - - * @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 index 23668dbad143edee8f64de3ba40380d5e84574c7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 597 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbMf{{Wv5*U6Lny}dnu|NgOb>EiF- zzyA95^T2`qy*+Jvc5nar+amTa{K1xTQ@FEoY4FG*Y{sPzrB3^=+XTf6MEb4 z-nw$@`o*8$KmYjl>HF7@pFX^qJZZw+o0sn1y880j!^ih;_I7vt`tkMq*H5osKKuUl z^ZU22r%#!*Y2(I)3l{wU|Nq~=e}Dh}{r&s*uV24De*F0M?c3L{U%z_w>cxu}&z?Pd z`t<3OCr=(fe*EasqX!QjoIij5)TvWPjvP6B`0&Al2lwsUw|DQ}J$v@--o1P6+O;cI ztXRBw@qz^l=Fgu$Z{EDQbLY;PGiUbf*|TQNYHe*TD=W*+&W??Zb#QQylamt@6Jum# z1O))l4gEV!fUMAxAirQBm+F9F!$S7+Knpf_x;TbNNU|Qx_F_sDVYpDd{=N#AE$8u; zj<5@6Q4QR@N?DQ@`NI_?k_GIHlxM%3Gows_!OL8^Z?zReE9dX?i$61P@lM}fsWI0j z==$UJ?+o|u-R3bX^|SH*=n4M1u072gj(t5{D>iL{^Nc@Xp0@i=#j%*2=koOu+Wp@6 zXr^f6C-eO~CDu%t!63J*KW_bcj<-1*y?*V!Shb?zV%nDX{ErGY1um$S&kOZ_emBhL cBGZKb3qnoLoSqjr1?YALPgg&ebxsLQ0D`b}BLDyZ -- 2.11.0