From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43155 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: Using `links' to process HTML Date: Sun, 17 Feb 2002 19:44:35 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <2npu334o0c.fsf@zsh.cs.rochester.edu> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035178295 16048 80.91.224.250 (21 Oct 2002 05:31:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:31:35 +0000 (UTC) Cc: Hrvoje Niksic Return-Path: Original-Received: (qmail 17082 invoked from network); 18 Feb 2002 00:47:02 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 18 Feb 2002 00:47:02 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16cbvc-0005kl-00; Sun, 17 Feb 2002 18:45:12 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 17 Feb 2002 18:45:11 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id SAA03127 for ; Sun, 17 Feb 2002 18:45:00 -0600 (CST) Original-Received: (qmail 17056 invoked by alias); 18 Feb 2002 00:44:56 -0000 Original-Received: (qmail 17051 invoked from network); 18 Feb 2002 00:44:56 -0000 Original-Received: from roc-24-58-72-167.rochester.rr.com (HELO zsh.2y.net) (@24.58.72.167) by gnus.org with SMTP; 18 Feb 2002 00:44:56 -0000 Original-Received: (from zsh@localhost) by zsh.2y.net (8.11.6/8.11.2) id g1I0iZK15325; Sun, 17 Feb 2002 19:44:35 -0500 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: #zw9`a=vHLkn+ZH8C (Hrvoje Niksic's message of "Thu, 14 Feb 2002 08:08:53 +0100") Original-Lines: 31 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:43155 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43155 Hrvoje Niksic writes: > [ Note: I'm not on the list. If you want me to see your replies, add Cc. ] > > I've been using this for some time now and want to share it with > others. It hooks into the processing of "text/html" and renders it by > noninteractively calling the textual browser `links'. Although this > doesn't support images, colors, forms and whatnot, those are the > things I turn off anyway. It does support tables, however. > > Overall it does a much better job of rendering HTML than w3 does. My > spams finally come out right before I ignore them. > > Here is what I put in `.gnus'. It relies on the program `links' being > somewhere on the PATH. If you try it, please let me know if it works > for you. Inspired by the code, I added a new feature which enables users to choose w3, w3m, links or lynx to render HTML parts. For example, (setq mm-text-html-renderer 'links) (I don't have links installed. Please test.) This variable can be overridden if mm-inline-text-html-renderer is set. Also, gnus-article-wash-html uses this variable too. If anyone knows some external commands to render html or other MIME type, please post the solutions. Something like html2txt or word2txt. ShengHuo