More MIME->Mime conversions
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 10 Nov 2008 22:12:07 +0000 (15:12 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 10 Nov 2008 22:12:07 +0000 (15:12 -0700)
36 files changed:
framework/Mime/lib/Horde/Mime/Viewer.php
framework/Mime/lib/Horde/Mime/Viewer/Driver.php [deleted file]
framework/Mime/lib/Horde/Mime/Viewer/audio.php
framework/Mime/lib/Horde/Mime/Viewer/css.php
framework/Mime/lib/Horde/Mime/Viewer/deb.php
framework/Mime/lib/Horde/Mime/Viewer/default.php
framework/Mime/lib/Horde/Mime/Viewer/enriched.php
framework/Mime/lib/Horde/Mime/Viewer/enscript.php
framework/Mime/lib/Horde/Mime/Viewer/html.php
framework/Mime/lib/Horde/Mime/Viewer/images.php
framework/Mime/lib/Horde/Mime/Viewer/msexcel.php
framework/Mime/lib/Horde/Mime/Viewer/mspowerpoint.php
framework/Mime/lib/Horde/Mime/Viewer/msword.php
framework/Mime/lib/Horde/Mime/Viewer/ooo.php
framework/Mime/lib/Horde/Mime/Viewer/pdf.php
framework/Mime/lib/Horde/Mime/Viewer/php.php
framework/Mime/lib/Horde/Mime/Viewer/plain.php
framework/Mime/lib/Horde/Mime/Viewer/rar.php
framework/Mime/lib/Horde/Mime/Viewer/report.php
framework/Mime/lib/Horde/Mime/Viewer/rfc822.php
framework/Mime/lib/Horde/Mime/Viewer/richtext.php
framework/Mime/lib/Horde/Mime/Viewer/rpm.php
framework/Mime/lib/Horde/Mime/Viewer/rtf.php
framework/Mime/lib/Horde/Mime/Viewer/security.php
framework/Mime/lib/Horde/Mime/Viewer/simple.php
framework/Mime/lib/Horde/Mime/Viewer/smil.php
framework/Mime/lib/Horde/Mime/Viewer/source.php
framework/Mime/lib/Horde/Mime/Viewer/srchighlite.php
framework/Mime/lib/Horde/Mime/Viewer/tgz.php
framework/Mime/lib/Horde/Mime/Viewer/tnef.php
framework/Mime/lib/Horde/Mime/Viewer/vcard.php
framework/Mime/lib/Horde/Mime/Viewer/webcpp.php
framework/Mime/lib/Horde/Mime/Viewer/wordperfect.php
framework/Mime/lib/Horde/Mime/Viewer/zip.php
framework/Mime/lib/Horde/Mime/mime.magic.php
framework/Mime/lib/Horde/Mime/mime.mapping.php

index e450189..9eec888 100644 (file)
@@ -26,7 +26,7 @@ class Horde_Mime_Viewer
 
     /**
      * The driver cache array. This array is shared between all instances of
-     * Horde_MIME_Viewer.
+     * Horde_Mime_Viewer.
      *
      * @var array
      */
diff --git a/framework/Mime/lib/Horde/Mime/Viewer/Driver.php b/framework/Mime/lib/Horde/Mime/Viewer/Driver.php
deleted file mode 100644 (file)
index fe70349..0000000
+++ /dev/null
@@ -1,190 +0,0 @@
-<?php
-/**
- * The Horde_MIME_Viewer_Driver:: class provides the API for specific viewer
- * drivers to extend.
- *
- * Copyright 1999-2008 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (LGPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
- *
- * @author  Anil Madhavapeddy <anil@recoil.org>
- * @author  Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME
- */
-class Horde_MIME_Viewer_Driver
-{
-    /* 'type' constants for status info. */
-    const WARNING = 1;
-    const INFO = 2;
-
-    /**
-     * Viewer configuration.
-     *
-     * @var array
-     */
-    protected $_conf = array();
-
-    /**
-     * The Horde_MIME_Part object to render.
-     *
-     * @var Horde_MIME_Part
-     */
-    protected $_mimepart = null;
-
-    /**
-     * Viewer parameters.
-     *
-     * @var array
-     */
-    protected $_params = array();
-
-    /**
-     * Can this driver render various views?
-     *
-     * @var boolean
-     */
-    protected $_canrender = array(
-        'full' => false,
-        'info' => false,
-        'inline' => false,
-    );
-
-    /**
-     * Constructor.
-     *
-     * @param array $conf  Configuration specific to the driver.
-     */
-    function __construct($conf = array())
-    {
-        $this->_conf = $conf;
-    }
-
-    /**
-     * Sets the Horde_MIME_Part object for the class.
-     *
-     * @param Horde_MIME_Part &$mime_part  Reference to an object with the
-     *                                     information to be rendered.
-     */
-    public function setMIMEPart(&$mime_part)
-    {
-        $this->_mimepart = $mime_part;
-    }
-
-    /**
-     * Set parameters for use with this object.
-     *
-     * @param array $params  An array of params to add to the internal
-     *                       params list.
-     */
-    public function setParams($params = array())
-    {
-        $this->_params = array_merge($this->_params, $params);
-    }
-
-    /**
-     * Return the rendered version of the Horde_MIME_Part object.
-     *
-     * @return array  TODO
-     */
-    public function render()
-    {
-        return (is_null($this->_mimepart) || !$this->canDisplay())
-            ? array('data' => '', 'status' => array(), 'type' => 'text/plain')
-            : $this->_render();
-    }
-
-    /**
-     * Return the rendered version of the Horde_MIME_Part object.
-     *
-     * @return string  Rendered version of the Horde_MIME_Part object.
-     */
-    protected function _render()
-    {
-    }
-
-    /**
-     * Return the rendered inline version of the Horde_MIME_Part object.
-     *
-     * @return string  Rendered version of the Horde_MIME_Part object.
-     */
-    public function renderInline()
-    {
-        return (is_null($this->_mimepart) || !$this->canDisplayInline())
-            ? array('data' => '', 'status' => array())
-            : $this->_renderInline();
-    }
-
-    /**
-     * Return the rendered inline version of the Horde_MIME_Part object.
-     *
-     * @return string  Rendered version of the Horde_MIME_Part object.
-     */
-    protected function _renderInline()
-    {
-    }
-
-    /**
-     * Return the rendered information about the Horde_MIME_Part object.
-     *
-     * @return string  Rendered information on the Horde_MIME_Part object.
-     */
-    public function renderInfo()
-    {
-        return (is_null($this->_mimepart) || !$this->canDisplayInfo())
-            ? array('data' => '', 'status' => array())
-            : $this->_renderInfo();
-    }
-
-    /**
-     * Return the rendered information about the Horde_MIME_Part object.
-     *
-     * @return string  Rendered information on the Horde_MIME_Part object.
-     */
-    protected function _renderInfo()
-    {
-    }
-
-    /**
-     * Can this driver render the the data?
-     *
-     * @return boolean  True if the driver can render data.
-     */
-    public function canDisplay()
-    {
-        return $this->_canrender['full'];
-    }
-
-    /**
-     * Can this driver render the the data inline?
-     *
-     * @return boolean  True if the driver can display inline.
-     */
-    public function canDisplayInline()
-    {
-        return $this->getConfigParam('inline') && $this->_canrender['inline'];
-    }
-
-    /**
-     * Can this driver render the the data inline?
-     *
-     * @return boolean  True if the driver can display inline.
-     */
-    public function canDisplayInfo()
-    {
-        return $this->_canrender['info'];
-    }
-
-    /**
-     * Return a configuration parameter for the current viewer.
-     *
-     * @param string $param  The parameter name.
-     *
-     * @return mixed  The value of the parameter; returns null if the
-     *                parameter doesn't exist.
-     */
-    public function getConfigParam($param)
-    {
-        return isset($this->_conf[$param]) ? $this->_conf[$param] : null;
-    }
-}
index df83fbe..edcd967 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_audio class sends audio parts to the browser for
+ * The Horde_Mime_Viewer_audio class sends audio parts to the browser for
  * handling by the browser, a plugin, or a helper application.
  *
  * Copyright 2004-2008 The Horde Project (http://www.horde.org/)
@@ -9,9 +9,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_audio extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_audio extends Horde_Mime_Viewer_Driver
 {
     /**
      * Return the content-type.
index d11ebed..a8575cb 100644 (file)
@@ -3,7 +3,7 @@
 require_once dirname(__FILE__) . '/source.php';
 
 /**
- * The Horde_MIME_Viewer_css class renders CSS source as HTML with an effort
+ * The Horde_Mime_Viewer_css class renders CSS source as HTML with an effort
  * to remove potentially malicious code.
  *
  * Copyright 2004-2008 The Horde Project (http://www.horde.org/)
@@ -12,9 +12,9 @@ require_once dirname(__FILE__) . '/source.php';
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Chuck Hagenbuch <chuck@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_css extends Horde_MIME_Viewer_source
+class Horde_Mime_Viewer_css extends Horde_Mime_Viewer_source
 {
     /**
      * Render out the currently set contents.
index 7afdc97..d848f06 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_deb class renders out lists of files in Debian
+ * The Horde_Mime_Viewer_deb class renders out lists of files in Debian
  * packages by using the dpkg tool to query the package.
  *
  * Copyright 1999-2008 The Horde Project (http://www.horde.org/)
@@ -9,9 +9,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_deb extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_deb extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render the data.
index 4872f75..2d2b4bc 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_default class simply prints out the encapsulated
+ * The Horde_Mime_Viewer_default class simply prints out the encapsulated
  * content.  It exists as a fallback if no other intelligent rendering
  * mechanism could be used.
  *
@@ -10,8 +10,8 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_default extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_default extends Horde_Mime_Viewer_Driver
 {
 }
index a46db58..aff1ef4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_enriched class renders out plain text from enriched
+ * The Horde_Mime_Viewer_enriched class renders out plain text from enriched
  * content tags, ala RFC 1896.
  *
  * By RFC, we must do the minimal conformance measures of: A minimal
@@ -21,9 +21,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Eric Rostetter <eric.rostetter@physics.utexas.edu>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_enriched extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_enriched extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the currently set contents in HTML format. The
index 7d3edb1..533a63d 100644 (file)
@@ -3,7 +3,7 @@
 require_once dirname(__FILE__) . '/source.php';
 
 /**
- * The Horde_MIME_Viewer_enscript class renders out various content in HTML
+ * The Horde_Mime_Viewer_enscript class renders out various content in HTML
  * format by using GNU Enscript.
  *
  * Copyright 1999-2008 The Horde Project (http://www.horde.org/)
@@ -12,9 +12,9 @@ require_once dirname(__FILE__) . '/source.php';
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_enscript extends Horde_MIME_Viewer_source
+class Horde_Mime_Viewer_enscript extends Horde_Mime_Viewer_source
 {
     /**
      * Render out the data using Enscript.
@@ -74,7 +74,7 @@ class Horde_MIME_Viewer_enscript extends Horde_MIME_Viewer_source
     {
         include_once dirname(__FILE__) . '/../Magic.php';
 
-        $ext = Horde_MIME_Magic::MIMEToExt($type);
+        $ext = Horde_Mime_Magic::MIMEToExt($type);
 
         switch ($ext) {
         case 'cs':
index 9467187..47e42e9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_html class renders out HTML text with an effort to
+ * The Horde_Mime_Viewer_html class renders out HTML text with an effort to
  * remove potentially malicious code.
  *
  * Copyright 1999-2008 The Horde Project (http://www.horde.org/)
@@ -11,9 +11,9 @@
  * @author  Anil Madhavapeddy <anil@recoil.org>
  * @author  Jon Parise <jon@horde.org>
  * @author  Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_html extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_html extends Horde_Mime_Viewer_Driver
 {
     /**
      * Can this driver render various views?
@@ -159,7 +159,7 @@ class Horde_MIME_Viewer_html extends Horde_MIME_Viewer_Driver
 
             $status[] = array(
                 'text' => $phish_warning,
-                'type' => self::WARNING
+                'type' => 'warning'
             );
         }
 
index ced92d7..3cc1371 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_images class allows images to be displayed.
+ * The Horde_Mime_Viewer_images class allows images to be displayed.
  *
  * Copyright 2002-2008 The Horde Project (http://www.horde.org/)
  *
@@ -8,9 +8,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_images extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_images extends Horde_Mime_Viewer_Driver
 {
     /**
      * Return the content-type.
index 7b82a64..fc79250 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_msexcel class renders out Microsoft Excel
+ * The Horde_Mime_Viewer_msexcel class renders out Microsoft Excel
  * documents in HTML format by using the xlHtml package.
  *
  * Copyright 1999-2008 The Horde Project (http://www.horde.org/)
@@ -9,9 +9,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_msexcel extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_msexcel extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the currently data using xlhtml.
index 6bef4de..2d19fe0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_mspowerpoint class renders out Microsoft Powerpoint
+ * The Horde_Mime_Viewer_mspowerpoint class renders out Microsoft Powerpoint
  * documents in HTML format by using the xlHtml package.
  *
  * Copyright 1999-2008 The Horde Project (http://www.horde.org/)
@@ -9,9 +9,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_mspowerpoint extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_mspowerpoint extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the current data using ppthtml.
index 7892fb2..0b37cad 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_msword class renders out Microsoft Word documents
+ * The Horde_Mime_Viewer_msword class renders out Microsoft Word documents
  * in HTML format by using the wvWare package.
  *
  * Copyright 1999-2008 The Horde Project (http://www.horde.org/)
@@ -9,9 +9,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_msword extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_msword extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the current data using wvWare.
index 4c82e2d..81689db 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_ooo class renders out OpenOffice.org documents in
+ * The Horde_Mime_Viewer_ooo class renders out OpenOffice.org documents in
  * HTML format.
  *
  * Copyright 2003-2008 The Horde Project (http://www.horde.org/)
@@ -10,9 +10,9 @@
  *
  * @author  Marko Djukic <marko@oblo.com>
  * @author  Jan Schneider <jan@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_ooo extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_ooo extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the current data.
index 40e46ec..a75f761 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_pdf class simply outputs the PDF file with the
+ * The Horde_Mime_Viewer_pdf class simply outputs the PDF file with the
  * content-type 'application/pdf' enabling web browsers with a PDF viewer
  * plugin to view the PDF file inside the browser.
  *
@@ -10,9 +10,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_pdf extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_pdf extends Horde_Mime_Viewer_Driver
 {
     /**
      * Return the content-type.
index 0c00954..3113cce 100644 (file)
@@ -3,7 +3,7 @@
 require_once dirname(__FILE__) . '/source.php';
 
 /**
- * The Horde_MIME_Viewer_php class renders out syntax-highlighted PHP code in
+ * The Horde_Mime_Viewer_php class renders out syntax-highlighted PHP code in
  * HTML format.
  *
  * Copyright 1999-2008 The Horde Project (http://www.horde.org/)
@@ -12,9 +12,9 @@ require_once dirname(__FILE__) . '/source.php';
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Chuck Hagenbuch <chuck@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_php extends Horde_MIME_Viewer_source
+class Horde_Mime_Viewer_php extends Horde_Mime_Viewer_source
 {
     /**
      * Renders out the contents.
index 202f5cc..f667cba 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_plain class renders out plain text with URLs made
+ * The Horde_Mime_Viewer_plain class renders out plain text with URLs made
  * into hyperlinks (if viewing inline).
  *
  * Copyright 1999-2008 The Horde Project (http://www.horde.org/)
@@ -10,9 +10,9 @@
  *
  * @author  Anil Madhavapeddy <anil@recoil.org>
  * @author  Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_plain extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_plain extends Horde_Mime_Viewer_Driver
 {
     /**
      * Can this driver render various views?
index 5fe863a..37a031c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_rar class renders out the contents of .rar archives
+ * The Horde_Mime_Viewer_rar class renders out the contents of .rar archives
  * in HTML format.
  *
  * Copyright 1999-2008 The Horde Project (http://www.horde.org/)
@@ -10,9 +10,9 @@
  *
  * @author  Anil Madhavapeddy <anil@recoil.org>
  * @author  Michael Cochrane <mike@graftonhall.co.nz>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_rar extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_rar extends Horde_Mime_Viewer_Driver
 {
     /**
      * Rar compression methods.
index 89197e6..e0ee246 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
- * The Horde_MIME_Viewer_report class is a wrapper used to load the
- * appropriate Horde_MIME_Viewer for multipart/report data (RFC 3462).
+ * The Horde_Mime_Viewer_report class is a wrapper used to load the
+ * appropriate Horde_Mime_Viewer for multipart/report data (RFC 3462).
  *
  * Copyright 2003-2008 The Horde Project (http://www.horde.org/)
  *
@@ -9,14 +9,14 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_report extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_report extends Horde_Mime_Viewer_Driver
 {
     /**
-     * Stores the Horde_MIME_Viewer of the specified protocol.
+     * Stores the Horde_Mime_Viewer of the specified protocol.
      *
-     * @var Horde_MIME_Viewer
+     * @var Horde_Mime_Viewer
      */
     protected $_viewer;
 
@@ -29,12 +29,12 @@ class Horde_MIME_Viewer_report extends Horde_MIME_Viewer_Driver
      */
     public function render($params = array())
     {
-        /* Get the appropriate Horde_MIME_Viewer for the protocol specified. */
+        /* Get the appropriate Horde_Mime_Viewer for the protocol specified. */
         if (!($this->_resolveViewer())) {
             return;
         }
 
-        /* Render using the loaded Horde_MIME_Viewer object. */
+        /* Render using the loaded Horde_Mime_Viewer object. */
         return $this->_viewer->render($params);
     }
 
@@ -45,7 +45,7 @@ class Horde_MIME_Viewer_report extends Horde_MIME_Viewer_Driver
      */
     public function getType()
     {
-        /* Get the appropriate Horde_MIME_Viewer for the protocol specified. */
+        /* Get the appropriate Horde_Mime_Viewer for the protocol specified. */
         if (!($this->_resolveViewer())) {
             return 'application/octet-stream';
         } else {
@@ -54,9 +54,9 @@ class Horde_MIME_Viewer_report extends Horde_MIME_Viewer_Driver
     }
 
     /**
-     * Load a Horde_MIME_Viewer according to the report-type parameter stored
+     * Load a Horde_Mime_Viewer according to the report-type parameter stored
      * in the MIME_Part to render. If unsuccessful, try to load a generic
-     * multipart Horde_MIME_Viewer.
+     * multipart Horde_Mime_Viewer.
      *
      * @return boolean  True on success, false on failure.
      */
@@ -66,7 +66,7 @@ class Horde_MIME_Viewer_report extends Horde_MIME_Viewer_Driver
 
         if (empty($this->_viewer)) {
             if (($type = $this->mime_part->getContentTypeParameter('report-type'))) {
-                $viewer = &Horde_MIME_Viewer::factory($this->mime_part, 'message/' . String::lower($type));
+                $viewer = &Horde_Mime_Viewer::factory($this->mime_part, 'message/' . String::lower($type));
                 $type = $this->mime_part->getPrimaryType();
             } else {
                 /* If report-type is missing, the message is an improper
@@ -77,7 +77,7 @@ class Horde_MIME_Viewer_report extends Horde_MIME_Viewer_Driver
 
             if (empty($viewer) ||
                 (String::lower(get_class($viewer)) == 'mime_viewer_default')) {
-                if (!($viewer = &Horde_MIME_Viewer::factory($this->mime_part, $type . '/*'))) {
+                if (!($viewer = &Horde_Mime_Viewer::factory($this->mime_part, $type . '/*'))) {
                     return false;
                 }
             }
index b8a10be..8087914 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_rfc822 class renders out messages from the
+ * The Horde_Mime_Viewer_rfc822 class renders out messages from the
  * message/rfc822 content type.
  *
  * Copyright 2002-2008 The Horde Project (http://www.horde.org/)
@@ -9,9 +9,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
  *
  * @author  Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_rfc822 extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_rfc822 extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the currently set contents.
@@ -62,7 +62,7 @@ class Horde_MIME_Viewer_rfc822 extends Horde_MIME_Viewer_Driver
 
         /* Get the list of headers now. */
         require_once 'Horde/MIME/Headers.php';
-        $headers = Horde_MIME_Headers::parseHeaders($text);
+        $headers = Horde_Mime_Headers::parseHeaders($text);
 
         $header_array = array(
             'date' => _("Date"),
index e8c6965..aae76b4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_richtext class renders out HTML text from
+ * The Horde_Mime_Viewer_richtext class renders out HTML text from
  * text/richtext content tags, (RFC 1896 [7.1.3]).
  *
  * A minimal richtext implementation is one that simply converts "<lt>" to
@@ -30,9 +30,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_richtext extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_richtext extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the currently set contents in HTML format.
index 5c12665..8d99d2a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_rpm class renders out lists of files in RPM
+ * The Horde_Mime_Viewer_rpm class renders out lists of files in RPM
  * packages by using the rpm tool to query the package.
  *
  * Copyright 1999-2008 The Horde Project (http://www.horde.org/)
@@ -9,9 +9,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_rpm extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_rpm extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the RPM contents.
index e48e634..b7e9001 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_rtf class renders out Rich Text Format documents in
+ * The Horde_Mime_Viewer_rtf class renders out Rich Text Format documents in
  * HTML format by using the UnRTF package
  * (http://www.gnu.org/software/unrtf/unrtf.html).
  *
@@ -10,9 +10,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Duck <duck@obala.net>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_rtf extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_rtf extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the current data using UnRTF.
index 480b6e4..c898eaa 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
- * The Horde_MIME_Viewer_security class is a wrapper used to load the
- * appropriate Horde_MIME_Viewer for secure multipart messages (defined by RFC
+ * The Horde_Mime_Viewer_security class is a wrapper used to load the
+ * appropriate Horde_Mime_Viewer for secure multipart messages (defined by RFC
  * 1847). This class handles multipart/signed and multipart/encrypted data.
  *
  * Copyright 2002-2008 The Horde Project (http://www.horde.org/)
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_security extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_security extends Horde_Mime_Viewer_Driver
 {
     /**
-     * Stores the Horde_MIME_Viewer of the specified security protocol.
+     * Stores the Horde_Mime_Viewer of the specified security protocol.
      *
-     * @var Horde_MIME_Viewer
+     * @var Horde_Mime_Viewer
      */
     protected $_viewer;
 
     /**
      * The $mime_part class variable has the information to render
-     * out, encapsulated in a Horde_MIME_Part object.
+     * out, encapsulated in a Horde_Mime_Part object.
      *
      * @param $params mixed  The parameters (if any) to pass to the underlying
-     *                       Horde_MIME_Viewer.
+     *                       Horde_Mime_Viewer.
      *
      * @return string  Rendering of the content.
      */
     public function render($params = array())
     {
-        /* Get the appropriate Horde_MIME_Viewer for the protocol specified. */
+        /* Get the appropriate Horde_Mime_Viewer for the protocol specified. */
         if (!($this->_resolveViewer())) {
             return;
         }
 
-        /* Render using the loaded Horde_MIME_Viewer object. */
+        /* Render using the loaded Horde_Mime_Viewer object. */
         return $this->_viewer->render($params);
     }
 
@@ -48,7 +48,7 @@ class Horde_MIME_Viewer_security extends Horde_MIME_Viewer_Driver
      */
     public function getType()
     {
-        /* Get the appropriate Horde_MIME_Viewer for the protocol specified. */
+        /* Get the appropriate Horde_Mime_Viewer for the protocol specified. */
         if (!($this->_resolveViewer())) {
             return 'application/octet-stream';
         } else {
@@ -57,9 +57,9 @@ class Horde_MIME_Viewer_security extends Horde_MIME_Viewer_Driver
     }
 
     /**
-     * Load a Horde_MIME_Viewer according to the protocol parameter stored
-     * in the Horde_MIME_Part to render. If unsuccessful, try to load a generic
-     * multipart Horde_MIME_Viewer.
+     * Load a Horde_Mime_Viewer according to the protocol parameter stored
+     * in the Horde_Mime_Part to render. If unsuccessful, try to load a generic
+     * multipart Horde_Mime_Viewer.
      *
      * @return boolean  True on success, false on failure.
      */
@@ -72,10 +72,10 @@ class Horde_MIME_Viewer_security extends Horde_MIME_Viewer_Driver
             if (empty($protocol)) {
                 return false;
             }
-            $viewer = &Horde_MIME_Viewer::factory($this->mime_part, $protocol);
+            $viewer = &Horde_Mime_Viewer::factory($this->mime_part, $protocol);
             if (empty($viewer) ||
                 (String::lower(get_class($viewer)) == 'mime_viewer_default')) {
-                $viewer = &Horde_MIME_Viewer::factory($this->mime_part, $this->mime_part->getPrimaryType() . '/*');
+                $viewer = &Horde_Mime_Viewer::factory($this->mime_part, $this->mime_part->getPrimaryType() . '/*');
                 if (empty($viewer)) {
                     return false;
                 }
index d2eecd3..a416a67 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_simple class renders out plain text without any
+ * The Horde_Mime_Viewer_simple class renders out plain text without any
  * modifications.
  *
  * Copyright 2004-2008 The Horde Project (http://www.horde.org/)
@@ -9,9 +9,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_simple extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_simple extends Horde_Mime_Viewer_Driver
 {
     /**
      * Return the MIME type of the rendered content.
index 8f521a4..e5078f1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_smil renders SMIL documents to very basic HTML.
+ * The Horde_Mime_Viewer_smil renders SMIL documents to very basic HTML.
  *
  * Copyright 2006-2008 The Horde Project (http://www.horde.org/)
  *
@@ -8,9 +8,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Jan Schneider <jan@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_smil extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_smil extends Horde_Mime_Viewer_Driver
 {
     /**
      * Handle for the XML parser object.
index 336946b..cbd1639 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_source class is a class for any viewer that wants
+ * The Horde_Mime_Viewer_source class is a class for any viewer that wants
  * to provide line numbers to extend.
  *
  * Copyright 1999-2008 The Horde Project (http://www.horde.org/)
@@ -9,9 +9,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Chuck Hagenbuch <chuck@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_source extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_source extends Horde_Mime_Viewer_Driver
 {
     /**
      * Add line numbers to a block of code.
index aa04725..0f1ea38 100644 (file)
@@ -3,7 +3,7 @@
 require_once dirname(__FILE__) . '/source.php';
 
 /**
- * The Horde_MIME_Viewer_srchighlite class renders out various content in HTML
+ * The Horde_Mime_Viewer_srchighlite class renders out various content in HTML
  * format by using Source-highlight.
  *
  * Source-highlight: http://www.gnu.org/software/src-highlite/
@@ -14,9 +14,9 @@ require_once dirname(__FILE__) . '/source.php';
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Mike Cochrane <mike@graftonhall.co.nz>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_srchighlite extends Horde_MIME_Viewer_source
+class Horde_Mime_Viewer_srchighlite extends Horde_Mime_Viewer_source
 {
     /**
      * Render out the currently set contents using Source-highlight
index 4bd7664..a49595b 100644 (file)
@@ -4,7 +4,7 @@ require_once 'Horde/Compress.php';
 require_once 'Horde/Text.php';
 
 /**
- * The Horde_MIME_Viewer_tgz class renders out plain or gzipped tarballs in
+ * The Horde_Mime_Viewer_tgz class renders out plain or gzipped tarballs in
  * HTML.
  *
  * See the enclosed file COPYING for license information (LGPL). If you
@@ -12,9 +12,9 @@ require_once 'Horde/Text.php';
  *
  * @author  Anil Madhavapeddy <anil@recoil.org>
  * @author  Michael Cochrane <mike@graftonhall.co.nz>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_tgz extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_tgz extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the currently set tar file contents.
index 64856df..bc26393 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_tnef class allows MS-TNEF attachments to be
+ * The Horde_Mime_Viewer_tnef class allows MS-TNEF attachments to be
  * displayed.
  *
  * Copyright 2002-2008 The Horde Project (http://www.horde.org/)
@@ -10,9 +10,9 @@
  *
  * @author  Jan Schneider <jan@horde.org>
  * @author  Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_tnef extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_tnef extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the current tnef data.
index b116eb8..adaa982 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_vcard class renders out vCards in HTML format.
+ * The Horde_Mime_Viewer_vcard class renders out vCards in HTML format.
  *
  * Copyright 2002-2008 The Horde Project (http://www.horde.org/)
  *
@@ -8,9 +8,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Jan Schneider <jan@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_vcard extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_vcard extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the vcard contents.
index 6c4ad0d..756479e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_webcpp class renders out various content in HTML
+ * The Horde_Mime_Viewer_webcpp class renders out various content in HTML
  * format by using Web C Plus Plus.
  *
  * Web C Plus plus: http://webcpp.sourceforge.net/
@@ -11,9 +11,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Mike Cochrane <mike@graftonhall.co.nz>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_webcpp extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_webcpp extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the currently set contents using Web C Plus Plus.
index c65184c..588af52 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_wordperfect class renders out WordPerfect documents
+ * The Horde_Mime_Viewer_wordperfect class renders out WordPerfect documents
  * in HTML format by using the libwpd package.
  *
  * libpwd website: http://libwpd.sourceforge.net/
@@ -11,9 +11,9 @@
  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  *
  * @author  Matt Selsky <selsky@columbia.edu>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_wordperfect extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_wordperfect extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the current data using wpd2html.
index ebdca0b..ef82421 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * The Horde_MIME_Viewer_zip class renders out the contents of ZIP files in
+ * The Horde_Mime_Viewer_zip class renders out the contents of ZIP files in
  * HTML format.
  *
  * Copyright 2000-2008 The Horde Project (http://www.horde.org/)
@@ -10,9 +10,9 @@
  *
  * @author  Chuck Hagenbuch <chuck@horde.org>
  * @author  Michael Cochrane <mike@graftonhall.co.nz>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
  */
-class Horde_MIME_Viewer_zip extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_zip extends Horde_Mime_Viewer_Driver
 {
     /**
      * Render out the current zip contents.
index d63efbe..0ee89d2 100644 (file)
Binary files a/framework/Mime/lib/Horde/Mime/mime.magic.php and b/framework/Mime/lib/Horde/Mime/mime.magic.php differ
index 82aebac..d0ae80e 100644 (file)
@@ -10,9 +10,7 @@
  * Any unknown file extensions will automatically be mapped to
  * 'x-extension/<ext>' where <ext> is the unknown file extension.
  *
- * @package Horde_MIME
- *
- * $Horde: framework/MIME/MIME/mime.mapping.php,v 1.18 2008/11/06 04:33:47 chuck Exp $
+ * @package Horde_Mime
  *
  * Generated: 11/05/08 23:30:23 by chuck on technest.org
  */
@@ -891,4 +889,4 @@ $mime_extension_map = array(
     'wk3'           => 'application/vnd.lotus-1-2-3',
     'abw'           => 'application/x-abiword',
     'pict1'         => 'image/x-pict'
-);
\ No newline at end of file
+);