LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Screwed up Content-Type in Mutt

[ILUG] Screwed up Content-Type in Mutt

Gavin McCullagh ilug_gmc at fiachra.ucd.ie
Tue Feb 19 14:22:31 GMT 2002


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





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell