<<< Date Index >>>     <<< Thread Index >>>

Re: mime type when adding attachment



On 2008-11-03, bill lam wrote:
> On Mon, 03 Nov 2008, Christian Mongeau wrote:
> > Chapter 5 of the manual deals with MIME:
> > http://www.mutt.org/doc/devel/manual.html#mimesupport
> > 
> > In particular, "2. MIME Type configuration with mime.types"
> > (http://www.mutt.org/doc/devel/manual.html#mime-types)
[...]
> 
> I checked again that there is no 
> ~/.mime.types
> /usr/local/share/mutt/mime.types
> /usr/share/mutt/mime.types
> 
> There are
> /etc/mime.types  which contains
> application/vnd.ms-excel        xls xlb xlt
> 
> /usr/etc/mime.types  ??? which contains
> application/excel               xls
> 
> Apparently mutt get mime type from /usr/etc/mime.types any idea why
> there is such a file and why mutt read from it, instead of
> /etc/mime.types as mentioned inside mutt documentation?

AFAIK there shouldn't be a /usr/etc/mime.types because it's not
FHS-compliant:
"[...] /usr/etc is still not allowed: programs in /usr should
place configuration files in /etc."
(http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY)

Well, ehm, they're simply guidelines...

Anyway, you can create a .mime.types in your $HOME with the line:
application/vnd.ms-excel        xls

Regards.

-- 
SDF Public Access UNIX System - http://sdf.lonestar.org