Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

rjbs (4671)

  (email not shown publicly)
AOL IM: RicardoJBSignes (Add Buddy, Send Message)
Yahoo! ID: RicardoSignes (Add User, Send Message)

I'm a Perl coder living in Bethlehem, PA and working Philadelphia. I'm a philosopher and theologan by training, but I was shocked to learn upon my graduation that these skills don't have many associated careers. Now I write code.

Journal of rjbs (4671)

Friday August 03, 2007
10:56 AM

how to view html mail in mutt

[ #33977 ]

I found this in my ~/www directory, and I thought I'd file it somewhere that I'm more likely to find it when needed, like in Rubric. This is a little out of date, as I'd probably use something more versatile than lynx, and I'd probably be using a custom-generated mailcap. That said, this is still useful information.

Add the following line to /etc/mailcap:

text/html; lynx -dump %s; nametemplate=%s.htm; copiousoutput

If you already have a line beginning with text/html and ending with copiousoutput, replace it. This command will cause text/html messages to be parsed by lynx and dumped as formatted text into temporary files.

Add the following lines to ~/.muttrc:

auto_view text/html
set implicit_autoview

If you already have an auto_view line, append text/html to it if it isn't already there. These lines will tell mutt to automatically invoke lynx as you specified above; mutt will then use lynx's output as the body of the message.

Now, when you reply to the message, mutt will use the dumped text as the body to which you're replying, so you will have that text available to quote.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.