Skip to content

Commit

Permalink
Fix downloading rfc822 parts
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 14, 2014
1 parent 0407141 commit a639ce5
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions imp/lib/Mime/Viewer/Rfc822.php
Expand Up @@ -24,9 +24,18 @@
class IMP_Mime_Viewer_Rfc822 extends Horde_Mime_Viewer_Rfc822
{
/**
* Return the full rendered version of the Horde_Mime_Part object.
* This driver's display capabilities.
*
* @return array See parent::render().
* @var array
*/
protected $_capability = array(
'full' => true,
'info' => true,
'inline' => false,
'raw' => true
);

/**
*/
protected function _render()
{
Expand All @@ -41,9 +50,6 @@ protected function _render()
}

/**
* Return the rendered information about the Horde_Mime_Part object.
*
* @return array See parent::render().
*/
protected function _renderInfo()
{
Expand All @@ -54,6 +60,14 @@ protected function _renderInfo()
return $ret;
}

/**
*/
protected function _renderRaw()
{
/* Needed for same reason as explained in _render(). */
return $this->_render();
}

/**
*/
protected function _getHeaderValue($ob, $header)
Expand Down

0 comments on commit a639ce5

Please sign in to comment.