Hi,
here's a thing that annoys me. I have lots of mailcap settings all set up
lovely in Mutt so that the program of my choice gets invoked to open the
various attachments I get sent. However far to frequently the Content-Type
is set wrong or at least in a different way. I just got an image with
this header:
Content-Type: application/Octet-stream; name="sillypic.bmp"; type=BMP-image
which - I would have thought should be:
Content-Type: image/bmp; name="sillypic.bmp"
but for whatever reason isn't. First of all, is this wrong or not?
I went googling and found a solution in terms of a shell script called
mutt_octet_view. It's here:
http://www.spocom.com/users/gjohnson/mutt/
it uses filename extensions to determine types. This doesn't strike me as
overly dangerous (naturally you don't configure it to recognise and run shell
scripts), but it doesn't strike me really as the way it should be done.
This is purely guesswork on my part, but I'd have expected the "file"
command or some such to be used to determine what the file was.
Could anyone more learned in UNIX/linux methodology comment on this?
Gavin
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!