[horde] mime attachment recognition

Jan Schneider jan at horde.org
Thu Feb 14 08:53:45 PST 2002


Zitat von jason kawaja <kawaja at ece.ufl.edu>:

> 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

The getType in MIME_Viewer returns the mime type of the output generated by 
the viewer.
In MIME_Part it should return the type of the mime part.
 
> 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?

Nope.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft




More information about the horde mailing list