[imp] How to click excel or word attachment icon and launch excel/word

Fred Ho fkho at fredho.net
Fri Sep 3 09:48:34 PDT 2004


Hi,
   I am using Horde/IMP HEAD 02-09-04 in testing. When I have a excel or
word attachment in the message, clicking the filename link beside the icon
will pop a new page and it said "The program used to view this data type
(/usr/local/bin/xlhtml) was not found on the system.". Understood since I
didn't install the xlhtml on my Linux box (running Redhat 8).

In mime_drivers.php, I have the following:
$mime_drivers['horde']['msexcel']['location'] = '/usr/local/bin/xlhtml';
$mime_drivers['horde']['msexcel']['inline'] = false;
$mime_drivers['horde']['msexcel']['handles'] = array(
    'application/msexcel',
    'application/vnd.ms-excel',
    'application/x-msexcel');
$mime_drivers['horde']['msexcel']['icons'] = array(
    'default' => 'msexcel.gif');

On another case, when I click on the pdf filename, the browser is able to
launch a new page and load up Adobe Reader and the pdf file. The
mime_drivers.php setting for pdf is:

$mime_drivers['horde']['pdf']['inline'] = false;
$mime_drivers['horde']['pdf']['handles'] = array(
    'application/pdf');
$mime_drivers['horde']['pdf']['icons'] = array(
    'default' => 'pdf.gif');

So, somehow my Mozilla on Windows can launch the Adobe Reader, but not the
Excel or Word. Why?

I went back to the Horde 2.1 and IMP 3.1, the word/excel file can be viewed
which the Mozilla launched the Office. There're no such mime settings on
excel/word on Horde 2.1.

Any ideas what I did wrong? Thanks.


Regards,
Fred







More information about the imp mailing list