<?php
// $Horde: imp/config/mime_drivers.php.dist,v 1.1.2.6 2002/06/24 04:19:04 slusarz Exp $

/**
 * Decide which output drivers you want to activate for
 * the IMP module. Settings in this file override settings
 * in horde/config/mime_drivers.php.
 *
 * Right now, the choices are:
 *
 * text:     Perform URL syntax highlighting on text portions
 * html:     Display HTML messages
 * enriched: Display enriched text messages
 * images:   Display attached images inline
 */

$mime_drivers_map['imp']['registered'] = array('text', 'html', 'enriched',
                                               'images');

/**
 * If you want to specifically override any MIME type to be
 * handled by a specific driver, then enter it here.  Normally,
 * this is safe to leave, but it's useful when multiple drivers
 * handle the same MIME type, and you want to specify exactly
 * which one should handle it.
 */

$mime_drivers_map['imp']['overrides'] = array();

/**
 * Driver specific settings.  Here, you have to configure each
 * driver which you chose to activate above.  Default settings have
 * been filled in for them, and if you haven't activated it, then
 * just leave it as it is - it won't get loaded.
 *
 * The 'handles' setting below shouldn't be changed in most
 * circumstances.  It registers a set of MIME type that the driver
 * can handle.  The 'x-extension' MIME type is a special one to
 * Horde that maps a file extension to a MIME type.  It's useful
 * when you know that all files ending in '.c' are C files, for
 * example.
 *
 * The 'icons' entry is for the driver to register various icons
 * for the MIME types it handles.  The array consists of a
 * 'default' icon for that driver, and can also include specific
 * MIME-types which can have their own icons.
 *
 */

/**
 * Text driver settings
 */

$mime_drivers['imp']['text']['inline'] = true;
$mime_drivers['imp']['text']['handles'] = array(
    'text/plain', 'message/delivery-status', 'text/rfc822-headers');


/**
 * HTML driver settings
 */

$mime_drivers['imp']['html']['inline'] = false;
$mime_drivers['imp']['html']['handles'] = array(
    'text/html', 'text/richtext');
$mime_drivers['imp']['html']['icons'] = array(
    'default' => 'html.gif');


/**
 * Enriched text driver settings
 */

$mime_drivers['imp']['enriched']['inline'] = true;
$mime_drivers['imp']['enriched']['handles'] = array(
    'text/enriched');
$mime_drivers['imp']['enriched']['icons'] = array(
    'default' => 'text.gif');


/**
 * Image driver settings
 */

$mime_drivers['imp']['images']['inline'] = true;
$mime_drivers['imp']['images']['handles'] = array(
    'image/bmp', 'image/gif', 'image/jpeg', 'image/pjpeg', 'image/pbm',
    'image/pgm', 'image/png', 'image/tiff', 'image/x-png');
$mime_drivers['imp']['images']['icons'] = array(
    'default' => 'image.gif');
