On 2013-12-14 18:03:57 -0500, Tim Gray wrote: > I use Christian's script for complex html messages, particularly ones that > have images attached in the email. However, it's a bit slower sometimes > then just opening up the html attachment via mailcap.
Thankfully I only plan to do this in instances where `w3m -dump` doesn't suffice. :-) > I have two entries in my mailcap, one for viewing in Safari (on OS X) > and one for viewing in mutt via w3m and the copious output setting. > view-attach shows the w3m version in the pager and view-mailcap saves > the html in a temp directory and opens it in Safari, using Eric > Gebhart's view_attachment script. > > text/html; /Users/me/bin/view_attachment %s html Safari ; > text/html; /usr/local/bin/w3m -dump %s; copiousoutput; nametemplate=%s.html I believe since w3m can take input from stdin you don't need to use "nametemplate", and you can do something like the following instead: text/html; w3m -I %{charset} -T text/html -dump; copiousoutput
pgpqF7OjZ_HM3.pgp
Description: PGP signature