On 01.06.10,18:39, Peter Stoddard wrote:
> I asked "What is the proper mailcap entry to view html attachments?" and the 
> reply was (thanks to ilf):
> 
> text/html; w3m -I 'iso-8859-15' -T text/html -dump; copiousoutput
> 
> In case there is another newcomer besides me out there, I'll document how I 
> implemented this solution.  The text-based web browser w3m can be installed 
> on Mac OSX 10.6 (snow leopard) by using Macports (http://www.macports.org/).  
> Download and install the macports (formerly darwin ports), and then go to 
> http://w3m.darwinports.com/ to install w3m.  If you get an error message 
> "can't find package Pextlib 1.0" then go to …
> 
> http://www.celsius1414.com/how-to-fix-cant-find-package-pextlib-1-0-in-macports-installation
> 
> … and follow the directions for installing a more current version of 
> Pextlib.dylib.  After doing that, the installation worked for me (on MacOSX 
> 10.6.3).
> 

Here is the setting for w3m I have in my ~/.mailcap:

text/html; w3m -v -F -T text/html %s; nametemplate=%s.html; \
needsterminal
text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput

and in ~/.muttrc:

auto_view text/html

If you combine this with urlview you will have some flexible ways to 
view html:

http://urlview.darwinports.com/
http://gd.tuwien.ac.at/linuxcommand.org/man_pages/urlview1.html



Jostein







Reply via email to