unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jonas Steverud <d4jonas@dtek.chalmers.se>
Subject: Re: html mail filter in gnus
Date: Wed, 18 Sep 2002 10:57:09 +0200	[thread overview]
Message-ID: <wtnit13iska.fsf@licia.dtek.chalmers.se> (raw)
In-Reply-To: 7ifzw8tp5z.fsf@neoscale.com

Kin Cho <kin@neoscale.com> 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  )

  parent reply	other threads:[~2002-09-18  8:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-17 19:02 html mail filter in gnus Kin Cho
2002-09-17 22:16 ` James Cozine
2002-09-18  6:38   ` Ichimusai
2002-09-18  8:38 ` Kai Großjohann
2002-09-18  8:57 ` Jonas Steverud [this message]
2002-09-18 20:07 ` D. Goel
2002-09-19 20:28   ` Kin Cho
2002-09-19 20:58     ` D. Goel
2002-09-19 21:00       ` D. Goel
2002-09-20 15:17         ` Nils Goesche
2002-09-20 16:45           ` D. Goel
2002-09-20 17:59             ` Nils Goesche

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wtnit13iska.fsf@licia.dtek.chalmers.se \
    --to=d4jonas@dtek.chalmers.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).