Re: autoview/mailcap/elinks question
Kyle Wheeler <kyle-mutt <at> memoryhole.net>
2008-05-01 15:18:27 GMT
On Thursday, May 1 at 12:04 PM, quoth Chris G:
> I have moved from using lynx as my HTML mail viewer to using elinks
> which, for some types of HTML in particular, works much better.
Personally, I prefer w3m, because it uses line-drawing characters for
tables.
> However it's still not as good as it could be. I have "auto_view
> text/html" in my muttrc file. I have "text/html; elinks -force-html
> %s; copiousoutput" in my .mailcap. HTML E-Mail is displayed 80
> columns wide even when I have a much wider window and colours (i.e.
> background etc.) are not set properly.
>
> If I hit 'v' in the index and save the HTML part of the message to a
> file and then view that file using elinks I get a much better version,
> it uses the available width of the window and sets background colours
> etc.
The important thing to realize here is that you're using elinks two
different ways here. When you trigger elinks from the view menu ('v'),
mutt is calling elinks and allowing it to control the terminal and do
things like control it's own scrolling and take input from the user
and such. When mutt calls elinks for doing auto_view, mutt connects
elinks' output to a pipe so that mutt can capture that output and
display it. The big difference as far as elinks is concerned is that
in the first case it has a connection to the terminal. It can find out
how big the terminal is, and so can adjust itself. In the auto_view
case, however, elinks doesn't have any way to ask the terminal how big
it is, so it has to rely on it's configuration. Specifically, when it
(Continue reading)