[Tickets #6711] Re: Viewing Inline HTML vs text message as user settable option

bugs at horde.org bugs at horde.org
Thu Nov 6 16:22:30 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/6711
------------------------------------------------------------------------------
  Ticket             | 6711
  Updated By         | dion.rowney at usask.ca
  Summary            | Viewing Inline HTML vs text message as user settable
                     | option
  Queue              | IMP
  Version            | HEAD
  Type               | Enhancement
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


dion.rowney at usask.ca (2008-11-06 11:22) wrote:

> You said you were modifying files for this - can you submit a patch?

I can tell you what I did as its not that difficult.  In  
mime_drivers.php I added an if statment and changed the boolean value  
to be a variable name:


if ( $GLOBALS['prefs']->getValue('html_inline_viewing') === '0' ) {
         $viewHtmlInline = false;
} else {
         $viewHtmlInline = true;
}


/**
  * HTML driver settings
  */
$mime_drivers['imp']['html'] = array(
     'inline' => $viewHtmlInline,


and created a new preference in prefs.php:

$_prefs['html_inline_viewing'] = array (
	'value' => 1,
	'locked' => false,
	'shared' => false,
	'type' => 'checkbox',
	'desc' => _("View messages as HTML when both HTML and plain text are  
available (this change takes effect after log out)?"),
	'help' => 'prefs-notavailable'
);





More information about the bugs mailing list