Gnus development mailing list
 help / color / mirror / Atom feed
From: Joakim Hove <Joakim.Hove@phys.ntnu.no>
Subject: htmlified mail
Date: 24 Jan 2001 10:15:40 +0100	[thread overview]
Message-ID: <k0n4rypcnur.fsf@metropolis.phys.ntnu.no> (raw)

Hello,

I quite often get htmlized mail were people have underlined or marked
up text with bold or italic. These mails are generally quite horrible
to read. However most of the markup (underline/bold/italic) can be
simply reproduced in a normal emacs buffer without resorting to w3 (or
any other browser). Is there a way I can do a simple washing of
text/html messages.

A typical example message looks like this (hopefully this looks as bad
in *your* gnus as it does in mine ...)

<html>
<font size=3>Joakim Eg proever aa kommentere nedanfor, i teksten. Har
ikkje papira mine her paa kontoret naa, men eg trur eg hugsar bra. Eg
<b>uthevar</b> mine kommentarar slik at du lett kan finne dei, (men la det ikkje
bli staande slik i brevet!)<br>
<br>
At 10:59 PM 1/22/2001 +0100, you wrote:<br>
<blockquote type=cite cite>Hei,<br>
<br>
nedenfor kommer de tre brevene som jeg kommer til å sende ut ganske<br>
snart. Dersom jeg ikke hører noe innen kvelden torsdag 25. januar,
så<br>
sender jeg mailene uforandret til de personene som er listet opp på<br>
fredag morgen. <br>
<br>
[....]

I would like this to wash into something like:

Joakim Eg proever aa kommentere nedanfor, i teksten. Har ikkje papira
mine her paa kontoret naa, men eg trur eg hugsar bra. Eg *uthevar* mine
kommentarar slik at du lett kan finne dei, (men la det ikkje bli
staande slik i brevet!)

At 10:59 PM 1/22/2001 +0100, you wrote:
cite> Hei,
cite> 
cite> nedenfor kommer de tre brevene som jeg kommer til å sende ut ganske
cite> snart. Dersom jeg ikke hører noe innen kvelden torsdag 25. januar,
cite> så sender jeg mailene uforandret til de personene som er listet opp på
cite> fredag morgen. 

---------------

Of course, the washing in question should be simple, tables and other
more "advanced" html features should of course not be supported. But
if washing could:

1. Remove and ignore <font> </font> pairs
2. Remove <br> and &nbsp; and "prittify" linebreaks/paragraphs/spacing 
3. Replace <b>bold</b> -> *bold* and <i>italic</i> -> /italic/

This would *greatly* increase the readability of these messages.

Is there anything like this in the works, or if not do anyone have
suggestions on how to implement something like this?

Joakim

-- 
==== Joakim Hove      www.phys.ntnu.no/~hove/   =======================
|| Institutt for fysikk  (735) 93637 / E3-166  |  Skøyensgate 10D    ||
|| N - 7491 Trondheim    hove@phys.ntnu.no     |  N - 7030 Trondheim ||
================================================= 73 93 31 68 =========


















             reply	other threads:[~2001-01-24  9:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-24  9:15 Joakim Hove [this message]
2001-01-24 11:38 ` Bill White
2001-01-24 14:06   ` Randal L. Schwartz
2001-01-24 15:03     ` Stainless Steel Rat
2001-01-24 15:22     ` Hannu Koivisto
2001-01-26  3:59   ` Error with function gnus-summary-pipe-output (Was htmlified mail) Mike Pullen
2001-01-26  8:17     ` Bill White
2001-01-26 13:20       ` ShengHuo ZHU
2001-01-28 20:44         ` James H. Cloos Jr.
2001-01-29  0:35           ` ShengHuo ZHU
2001-01-29  1:49             ` James H. Cloos Jr.
2001-02-06  6:51               ` ShengHuo ZHU
2001-01-26 19:01       ` James H. Cloos Jr.
2001-01-26 19:17         ` ShengHuo ZHU
2001-01-26 22:32           ` James H. Cloos Jr.
2001-01-26 23:00             ` ShengHuo ZHU
2001-01-27 21:17               ` James H. Cloos Jr.
2001-01-27 21:44                 ` ShengHuo ZHU

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

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

  git send-email \
    --in-reply-to=k0n4rypcnur.fsf@metropolis.phys.ntnu.no \
    --to=joakim.hove@phys.ntnu.no \
    /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 NNTP newsgroup(s).