On Thu, Dec 12, 2013 at 09:44:55AM -0700, Paul E Condon wrote:
> -pd,
> 
> I'd be very interested in having a copy of whatever .mailcap entry you
> work out. Please keep reporting your progress here, because I'm sure
> I can't be alone in this interest.

Hi, Paul,

The .mailcap entry is pretty basic:

text/html; w3m -I %{charset} -dump %s -cols $COLUMNS; copiousoutput; 
description=HTML Text; nametemplate=%s.html

That's how I view these messages directly in mutt. However, if I want
to see a more browser-like appearance, I defined some macros:


# Macros
macro pager B ":unset wait_key\n<pipe-message>mhonarc -single | browser\n:set 
wait_key\n"
macro index B ":unset wait_key\n<pipe-message>mhonarc -single | browser\n:set 
wait_key\n"
macro pager l "<pipe-message>mhonarc -single | w3m -T text/html\n"

You would, of course, need to install MHonArc and Browser. MHonArc
reformats any message, even text/plain, into a reasonably good looking
HTML. Browser sends it to the default browser.

I could probably come up with some further enhancements, but this
seems to be working pretty well for now. In particular, I don't know
of a way to get a "livlier" html display (colors, highlighted links,
etc.) right inside the mutt display.

-pd

Reply via email to