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

Jan Schneider jan at horde.org
Sat Sep 4 03:18:01 PDT 2004


Zitat von Fred Ho <fkho at fredho.net>:

> 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?

Because you configured IMP to use the MIME drivers for Word and Excel but
don't have the necessary programs available.

> 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.

Remove or comment out the mime settings for Word and Excel or click on the
download icon.

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the imp mailing list