-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday, May 15 at 05:14 PM, quoth Brian Salter-Duke:
>Could anyone suggest the best way to cleanup this sort of mail? I 
>have recently received two from different people. It is a mess. The 
>html is not an attachment.

For what purpose? If you need to turn it into useful text so that you 
can view it and reply to it, the best idea is going to be to add an 
html-renderer to your mailcap. If you just think it's untidy and don't 
want to store untidy email... mmm, perhaps pipe it to the `tidy` 
utility.

Presuming you need the former and not the latter, add this to your 
~/.mailcap file (each block should be entered as a single line):

     text/html; elinks -dump -force-html %s; needsterminal; 
     copiousoutput; test=type -P elinks > /dev/null

     text/html; links -dump -force-html %s; needsterminal; 
     copiousoutput; test=type -P links > /dev/null

     text/html; lynx -dump -force-html %s; needsterminal; 
     copiousoutput; test=type -P lynx > /dev/null

Then, of course, install one of those programs (if they're all in your 
mailcap file, it doesn't matter which one you install).

Then, add the following to your muttrc:

     auto_view text/html

That should do it for you.

Oh, you also may want to add this to your muttrc:

     alternative_order text/html text/plain

~Kyle
- -- 
They say marriages are made in Heaven. But so is thunder and 
lightning.
                                                      -- Clint Eastwood
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFGSbIVBkIOoMqOI14RAr6PAJ9frTTNBlPfYzfaZYTVaiNaDcsVXQCdGqc5
u2EJ65e1fzZn5BK3JQbUsmk=
=68ze
-----END PGP SIGNATURE-----

Reply via email to