Posted by andrew on 07/16/07 08:05
On 2007-07-16, Ben C <spamspam@spam.eggs> wrote:
> On 2007-07-15, andrew <andrew@ilium.invalid> wrote:
[...]
>> There is a significant number of people who resent html in email. I
>> count myself as one of them and count myself as fortunate that my
>> email client (mutt) has the ability to strip away the text/html and
>> present it as text/plain.
>
> Are you sure that's what mutt does? I think often an html email comes
> with a plain text component as well. Mutt shows that by default. Then
> you can go "view attachments" and look at the HTML (or "HTML") version
> with the program specified in ~/.mailcap or /etc/mailcap. On my system
> that's "w3m -dump %s". W3m is a text browser a bit like Lynx. But you
> can change that to open the HTML email in Konqueror or Firefox if you
> like by adding a line to ~/.mailcap.
You are of course quite correct, although I deliberately left the
detail out. But since you mentioned it:
On my system the .muttrc file specifies:
### Taming HTML Messages ###
set implicit_autoview=yes
auto_view text/html application/x_pgp_message
set mailcap_path="~/.mailcap"
And the mailcap file invokes Lynx treat the text/html as full html and
gives it back to mutt as plain text:
text/html; lynx -dump -force_html %s; copiousoutput
So it is true that mutt does not _natively_ do all this but a little
work will set it up to do so. My apologies for frightening all the
Windows users :-)
Andrew
--
Andrew's Corner
http://people.aapt.net.au/~adjlstrong/homer.html
Navigation:
[Reply to this message]
|