Content-Type being ignored for whole message body

2012-03-01 Thread Mark H. Wood
I've looked over all the configuration options I can find, and I see a
lot of stuff about *attachments*.  Attachments are working pretty
well.  But when I receive a message consisting of a single HTML
bodypart, the Content-Type header is apparently ignored and I see a
stream of markup gibberish.  Going through the attachment list (v m)
gets the message body rendered through lynx as I have it set up, but
what am I missing that this is not done automatically?

Here's a bit of what it looks like:

Thread-Topic: Work/Life E-news 3 12:  Help with Taxes, Get MIT Credentials,
Adult Immunizations  More
Thread-Index: Acz3u0L+dgkZKAO3QZ2hsFfZKTvwaQ==
Date: Thu, 1 Mar 2012 09:55:04 -0500
Message-ID:
c0f1c846dfc0374289bbea7190522fd910dd2...@iu-mssg-mbx102.ads.iu.edu
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 04
X-MS-Exchange-Organization-AuthSource: iu-mssg-hub101.ads.iu.edu
X-MS-Has-Attach: 
X-Auto-Response-Suppress: DR, OOF, AutoReply
X-MS-Exchange-Organization-SCL: -1
X-MS-TNEF-Correlator: 
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

html xmlns:v=urn:schemas-microsoft-com:vml
xmlns:o=urn:schemas-microsoft-com:office:office
xmlns:w=urn:schemas-microsoft-com:office:word
xmlns:m=http://schemas.microsoft.com/office/2004/12/omml;
xmlns=http://www.w3.org/TR/REC-html40;


And here's what I'm running:

mwood@mhw ~ $ mutt -v
Mutt 1.5.21 (2010-09-15, Gentoo 1.5.21-r1)
Copyright (C) 1996-2009 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 3.2.1-gentoo-r2 (x86_64)
ncurses: ncurses 5.9.20110404 (compiled with 5.9)
hcache backend: GDBM version 1.8.3. 10/15/2002 (built Sep 21 2011
10:51:40)
Compile options:
-DOMAIN
-DEBUG
+HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  -USE_FCNTL
+USE_FLOCK   
-USE_POP  -USE_NNTP  +USE_IMAP  -USE_SMTP  
+USE_SSL_OPENSSL  -USE_SSL_GNUTLS  +USE_SASL  -USE_GSS
+HAVE_GETADDRINFO  
-HAVE_REGCOMP  +USE_GNU_REGEX  +COMPRESSED  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME
+CRYPT_BACKEND_GPGME  
-EXACT_ADDRESS  -SUN_ATTACHMENT  
-ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET
+HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  -HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE  
-ISPELL
SENDMAIL=/usr/sbin/sendmail
MAILPATH=Maildir
PKGDATADIR=/usr/share/mutt
SYSCONFDIR=/etc/mutt
EXECSHELL=/bin/sh
MIXMASTER=mixmaster
To contact the developers, please mail to mutt-...@mutt.org.
To report a bug, please visit http://bugs.mutt.org/.

dgc.subjrx
fg.smarttime
vvv.initials
vvv.quote
vvv.nntp
patch-1.5.20hg.pdmef.progress.vl.2
rr.compressed
patch-1.5.4.lpr.collapse_flagged Lukas P. Ruf lukas@lpr.ch

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Asking whether markets are efficient is like asking whether people are smart.


pgpgTirgolyql.pgp
Description: PGP signature


Re: Content-Type being ignored for whole message body

2012-03-01 Thread Gary Johnson
On 2012-03-01, Mark H. Wood wrote:
 I've looked over all the configuration options I can find, and I see a
 lot of stuff about *attachments*.  Attachments are working pretty
 well.  But when I receive a message consisting of a single HTML
 bodypart, the Content-Type header is apparently ignored and I see a
 stream of markup gibberish.  Going through the attachment list (v m)
 gets the message body rendered through lynx as I have it set up, but
 what am I missing that this is not done automatically?

You need this in your ~/.muttrc (or ~/.mutt/muttrc):

auto_view text/html

and something like this in your mailcap:

text/html; w3m %s; nametemplate=%s.html
text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput

You might also take a look at this page:

http://www.spocom.com/users/gjohnson/mutt/#html

Regards,
Gary