[vox-tech] Forcing Links to interpret file as HTML?

Mike Simons vox-tech@lists.lugod.org
Sun, 02 Mar 2003 23:08:48 -0500


On Sat, Mar 01, 2003 at 01:05:49PM -0800, Bill Kendrick wrote:
> On Sat, Mar 01, 2003 at 01:02:37PM -0800, Bill Kendrick wrote:
> >   text/html; links %s
> 
> Ok, this works for me.  I just don't know if it's the best way to do it.
> Comments?
> 
>   text/html; cp %s %s.html\; links %s.html\; rm %s.html

Bill,
  checkout your /etc/mailcap on one of the debian boxes, basically
nametemplate=%s.html appears to be what you are after...

salomon:# grep text/html /etc/mailcap
====
text/html; /usr/bin/galeon '%s' && sleep 5; description=HTML Text; test=test -n "$DISPLAY"; nametemplate=%s.html
text/html; /usr/bin/mozilla '%s'; description=HTML Text; test=test -n "$DISPLAY";  nametemplate=%s.html
text/html; /usr/bin/lynx -force_html '%s'; needsterminal; description=HTML Text; nametemplate=%s.html
text/html; /usr/bin/html2text '%s'; copiousoutput; description=HTML Text
text/html; /usr/bin/lynx -dump -force_html '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html
====