Re: Could not load html file to browser
- To: mutt-users@xxxxxxxx
- Subject: Re: Could not load html file to browser
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Sun, 21 Sep 2008 00:31:54 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=O1w98QdiJXNAaZFH/khkiFtkU6o=; b=VyyP ujc5cix/buFSe/WajHr/1rUJf1k3F4OwwdeH1wGUxumuiD4iOWzjqNnwH6EhxgKd 4oL0rXhpgh71yKnYac/gOSJkBeWM/IaukdAV0e/ulLygEgw1NBoHzHmWOnvv7JVu KvHlZugi7D5ZEOppIESz6a3D/FZG/bCZAl+VeVo=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=YTbEk8M0BjzKsN2+Emfd199VMKVhWDCxGbNjdtGOydMFAIQqpt12PY5E8P9ygIt8vQy30+Hr8Uu3xz9Wp226PKmqR/D/Wu0vWsNCZn+VKI9oX+TGS8JwCPULM2cSC9g0ju+9uHuTPy6mWsAnjPXvNod5XHOAP1c0ybevpmfCiz8=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <95455e980809201714h56b67efep34d02b2b23a6a3ea@xxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <95455e980809201714h56b67efep34d02b2b23a6a3ea@xxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-08-31)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday, September 21 at 10:14 AM, quoth hce:
> Hi,
>
> I set following definition in the muttrc on the Debian box:
>
> set implicit_autoview
> alternative_order text/plain text/html
Okay... what does your text/html mailcap entry look like?
> When an email contains html format, the mutt called [-- Autoview
> using /usr/bin/w3m -dump -T text/html ''/tmp/mutt.html'' --]. But
> the html file could not be loaded to the browser as following error:
It sounds like your mailcap erroneously hardcoded the location of
temporary html files as /tmp/mutt.html, which is not what mutt uses.
> (1) Where is the autoview configurated to call /usr/bin/w3m -dump -T
> text/html?
It's defined in your mailcap file, either in ~/.mailcap or
/etc/mailcap. See your mailcap man page.
> (2) Why there is no /tmp/mutt.html? I tried to use vi to open
> /tmp/mutt.html, there was no that file either. That is why caused
> the browser eror to load a non exist /tmp/mutt.html file.
The short answer is: because there isn't *supposed* to be.
> (3) How to fix it in muttrc?
You can't. It has to be fixed in your mailcap.
A correct mailcap entry should look something like this:
text/html; w3m -dump -T text/html %s; needsterminal; copiousoutput;
Note the "%s" instead of "/tmp/mutt.html". That's so that mutt can
tell w3m where the temporary file is. It is usually something with an
unpredictable name (if it was a predictable name, it would be a
security problem), and NOT /tmp/mutt.html.
~Kyle
- --
Reliability means never having to say you're sorry.
-- Dr. Daniel J. Bernstein
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkjV3EoACgkQBkIOoMqOI17qdwCgvtijBhiWXDgdsdP5hcrKqiac
lV0AnjxDa/cHJOEGJUO85lLiT1qsGvSO
=OkBv
-----END PGP SIGNATURE-----