From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jonas Steverud Newsgroups: gmane.emacs.help Subject: Re: html mail filter in gnus Date: Wed, 18 Sep 2002 10:57:09 +0200 Organization: Church of Emacs, Missionary Dep. Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <7ifzw8tp5z.fsf@neoscale.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032339974 25953 127.0.0.1 (18 Sep 2002 09:06:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Sep 2002 09:06:14 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17ramj-0006kT-00 for ; Wed, 18 Sep 2002 11:06:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17ran3-0006zF-00; Wed, 18 Sep 2002 05:06:33 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed1.telenordia.se!algonet!newsfeed.sunet.se!news01.sunet.se!news.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help,gnu.emacs.gnus Original-Lines: 26 Original-NNTP-Posting-Host: licia.dtek.chalmers.se Original-X-Trace: nyheter.chalmers.se 1032339443 29600 129.16.30.88 (18 Sep 2002 08:57:23 GMT) Original-X-Complaints-To: abuse@chalmers.se Original-NNTP-Posting-Date: 18 Sep 2002 08:57:23 GMT Mail-Copies-To: never User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (sparc-sun-solaris2.8) Cancel-Lock: sha1:STdXHp+bKFFeLWARohRPdsMeOgs= Original-Xref: nntp.stanford.edu gnu.emacs.help:105018 gnu.emacs.gnus:60659 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1573 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1573 Kin Cho writes: > Hi, > > I'm getting html mail quite often now and it's getting annoying. > Does anyone has a gnus filter to filter out the html tags and > leave the plain text behind? I've added the following during the pGnus days: (add-to-list 'mm-inline-media-tests '("text/html" nil (lambda (h) nil))) (add-to-list 'mm-discouraged-alternatives "text/html") (add-to-list 'mm-discouraged-alternatives "text/richtext") (add-to-list 'mm-discouraged-alternatives "text/enriched") (setq mm-automatic-display (remove "text/html" mm-automatic-display)) (setq mm-automatic-display (remove "text/richtext" mm-automatic-display)) (setq mm-automatic-display (remove "text/enriched" mm-automatic-display)) It doesn't handle all possible, broken ways HTML can get to you but it helps a bit. (Improvements that doesn't involve W3 or similar are welcome.) -- ( www.dtek.chalmers.se/~d4jonas/ ! Wei Wu Wei ) ( Meaning of U2 Lyrics, Roleplaying ! To Do Without Do )