Re: Viewing html documents

2012-02-24 Thread Ranousse
On Fri, Feb 24, 2012 at 12:01, Paul wrote:
> On Friday, 24 February, 2012 at 11:14:04 GMT, Ranousse wrote:
> >After an upgrade to Mutt 1.5.21 (Debian backports), it does not work
> >anymore. Pressing enter in the attachment window shows the html file as
> >a text file (source file).
> 
> Try 'm', for view-mailcap, instead of enter.
> 
> -- 
> 
> .

Thanks.


Re: Viewing html documents

2012-02-24 Thread Paul

On Friday, 24 February, 2012 at 11:14:04 GMT, Ranousse wrote:

After an upgrade to Mutt 1.5.21 (Debian backports), it does not work
anymore. Pressing enter in the attachment window shows the html file as
a text file (source file).


Try 'm', for view-mailcap, instead of enter.

--

.


Viewing html documents

2012-02-24 Thread Ranousse
On Debian squeeze (Mutt 1.5.20), I used to have the following line in
mutt mailcap file
   text/html; w3m '%s'; nametemplate=%s.html

Thus if I received an html message that was not readable by mutt, I went
to the attachment window and could see the message with w3m.

After an upgrade to Mutt 1.5.21 (Debian backports), it does not work
anymore. Pressing enter in the attachment window shows the html file as
a text file (source file).


Seeing this, I tried another solution.
Add in .muttrc:
  auto_view text/html

and in mailcap file:
text/html; w3m -I %{charset} -T text/html; copiousoutput

It works. But I'm not fully satisfied by this solution.
Many people (the ones using gmail for instance) send html messages that
are in fact almost text files. Because they use standard gmail interface
with default configuration that I guess has html enabled by default.
These messages can be read by mutt without the use of a browser with a
better rendering I think ( >> for cited messages are more clearly shown
for instance, and it avoids the yellow message at the beginning about
using auto_view). So I preferred my old configuration (use mutt to read
html message by default, and a browser only when the email is not
readable).


Is there still a way to achieve this ? Or better solutions maybe...

Thank you.