From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/34146 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: sometimes discouraged html, any ideas? Date: 09 Jan 2001 00:08:24 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <2n3det9ut3.fsf@tiger.jia.vnet> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035170127 28884 80.91.224.250 (21 Oct 2002 03:15:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:15:27 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id D8EBAD049D for ; Tue, 9 Jan 2001 00:09:18 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id XAB14983; Mon, 8 Jan 2001 23:08:15 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 08 Jan 2001 23:07:36 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id XAA08008 for ; Mon, 8 Jan 2001 23:07:26 -0600 (CST) Original-Received: from zsh.yi.org (roc-24-93-30-91.rochester.rr.com [24.93.30.91]) by mailhost.sclp.com (Postfix) with ESMTP id 08075D049D for ; Tue, 9 Jan 2001 00:07:51 -0500 (EST) Original-Received: (from zsh@localhost) by zsh.yi.org (8.11.0/8.10.0) id f0958ON06845; Tue, 9 Jan 2001 00:08:24 -0500 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 27 Xref: main.gmane.org gmane.emacs.gnus.general:34146 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:34146 Jeff Senn writes: > Normally I have text/html as a discouraged alternative -- generally > this reduces the amount of time I spend accidently converting/reading > junk, as well as discouraging folks from sending me html-only email. > > However recently a few folks have been sending me email from various > hotmail-like places that contains only HTML (Grr) -- and in this case > I actually want to read it. > > Is there a way/Can anyone think of a quick way... to only > convert/display HTML that matches a particular expression (e.g. small > size or no "" tags) and buttonize it otherwise? You can try this, (defun your-html-test (handle) (when (locate-library "w3") ;; put your code here ;; return t to display it, nil to buttonize it )) (require 'mm-decode) (add-to-list 'mm-inline-media-tests '("text/html" mm-inline-text your-html-test)) ShengHuo