Can IMP show attachments or HTML inline?
IMP is capable of showing certain attachments inline (i.e., in the message body, rather than appearing in a new window on request), but in some cases it risks exposing the user to a security problem in the browser: by enabling inline HTML, any JavaScript (ActiveX, Java, etc.) in the attachment might be executed by the browser. We try to filter out any active content, but just like with any filter, it might not be perfect and let some code through. Enabling inline HTML attachments is discouraged.
Of course, this will only work for elements that could be part of a regular HTML page. In particular, images cannot be part of in a regular HTML page (they have to be a separate file with an <IMG> tag to include them in an HTML page), and can thus not be inlined.
Edit the files
horde/config/mime_drivers.php and
horde/imp/config/mime_drivers.php to enable inline support for the mime types you wish to have displayed inline. Simply set the 'inline' array element for that mime type to true to enable a type. As noted above, not all mime types can be shown inline; if there is no 'inline' array element for a mime type than that type can not be viewed inline.
For example, to enable inline HTML support you would set:
Code:
$mime_drivers['imp']['html']['inline'] = true;