[horde] mime attachment recognition

jason kawaja kawaja at ece.ufl.edu
Thu Feb 14 08:21:31 PST 2002


On Thu, 14 Feb 2002, Jan Schneider wrote:

> Zitat von jason kawaja <kawaja at ece.ufl.edu>:
>
> > 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.
> >
> > 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.
>
> That's not possible. But you can try to patch the MIME::getType() function
> to retrieve the mime type from the file extension instead.
> Good luck.

do i need to patch both functions?  it is declared in both :

 ./horde/lib/MIME/Part.php
 ./horde/lib/MIME/Viewer.php

upon clicking on an octect-stream, i notice both are loaded twice.
upon clicking a known mime, i notice both are loaded four times.

is there an ~internals~ type document that explains the relationship of
some of the mechanisms and files/procedures called?

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

 11:14am  up 62 day(s), 17:08,  1 user,  load average: 0.16, 0.19, 0.21





More information about the horde mailing list