On Sat, Jun 01, 2002 at 09:42:41PM -0500, Michael Herman wrote:
> I'm having weird problem.  I currently have dillo defined in my
> .mailcap for handling text/html.  When I try to view an html e-mail (NYT
> daily news, for example), the web page is displayed as the source
> HTML.  This also happens with links.  Mozilla works properly.  Any
> ideas?

My guess is that your mailcap entry looks something like this:

    text/html; dillo -dump %s; copiousoutput

Mutt does not add a .html extension to its temporary files by default,
so dillo thinks it's reading a plain text file.  There are two ways to
fix this.  Some browsers have an option like -force_html to force the
browser to treat the input as HTML.  The other way is to use the
nametemplate mailcap field:

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

Mozilla works properly because it assumes that everything is HTML unless
specified otherwise.  At least that's the way my Netscape Navigator
seems to work.

BTW, I assumed that you wanted this for in-line viewing of HTML e-mail,
and I know nothing about dillo, so I assumed that it has a -dump option.

HTH,
Gary

-- 
Gary Johnson                               | Agilent Technologies
[EMAIL PROTECTED]                   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |

Reply via email to