Gnus development mailing list
 help / color / mirror / Atom feed
* sometimes discouraged html, any ideas?
@ 2001-01-05 17:32 Jeff Senn
  2001-01-09  5:08 ` ShengHuo ZHU
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Senn @ 2001-01-05 17:32 UTC (permalink / raw)



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 "<img>" tags) and buttonize it otherwise?

-- 
-Jas




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sometimes discouraged html, any ideas?
  2001-01-05 17:32 sometimes discouraged html, any ideas? Jeff Senn
@ 2001-01-09  5:08 ` ShengHuo ZHU
  0 siblings, 0 replies; 2+ messages in thread
From: ShengHuo ZHU @ 2001-01-09  5:08 UTC (permalink / raw)


Jeff Senn <senn@maya.com> 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 "<img>" 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-01-09  5:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-05 17:32 sometimes discouraged html, any ideas? Jeff Senn
2001-01-09  5:08 ` ShengHuo ZHU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).