mime attachment recognition

jason kawaja kawaja at ece.ufl.edu
Wed Feb 13 16:43:37 PST 2002


greetings.

horde 2.0
imp 3.0

xlhtml-0.4
wv-0.7.1

i can see xls files from imp if sent from a mua that encodes as
application/msexcel.  however if i send an xls file from pine (which calls
the mime attachment application/octet-stream) then imp/horde does not map
the .ext (xls) to the correct mime type.

here is some of my config :

// $Horde: horde/config/mime_drivers.php ->

$mime_drivers_map['horde']['registered'] = array(
    'php', 'tgz', 'vcard'
    ,'msword', 'msexcel', 'mspowerpoint',
    // ,'enscript', 'rar', 'zip', 'rpm', 'deb'
    );

[snip]

/**
 * MS Excel driver settings
 * This driver requires xlhtml (www.xlhtml.org) to be installed.
 * Uncomment these lines to use this driver.
 */

/* Location of the xlhtml binary. */
$mime_drivers['horde']['msexcel']['location'] = '/usr/local/bin/xlhtml';
$mime_drivers['horde']['msexcel']['inline'] = false;
$mime_drivers['horde']['msexcel']['handles'] = array(
    'application/vnd.ms-excel',
    'application/msexcel',
    'x-extension/xls');
$mime_drivers['horde']['msexcel']['icons'] = array(
    'default' => 'msexcel.gif');

[snip]

i've looked at a few threads dealing with this, most seem to point to the
browser; would like to force a mapping on .ext only and ignore the
handle given from the originator.

any ideas?  tia.


/* Regards,
   Jason Kawaja, UF-ECE Sys Admin */

  7:33pm  up 62 day(s),  1:27,  1 user,  load average: 0.55, 0.65, 0.64





More information about the horde mailing list