Gnus development mailing list
 help / color / mirror / Atom feed
From: Joakim Hove <Joakim.Hove@phys.ntnu.no>
Subject: htmlified mail - a simple lisp "solution"
Date: 31 Jan 2001 15:39:32 +0100	[thread overview]
Message-ID: <k0nsnlzhjkr.fsf@metropolis.phys.ntnu.no> (raw)

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

Hello,

I have written a very simple solution to convert html formatted mails
to pure text, presevering *some* of the markup. It does of course not
handle general html, but the readability of the typical eudora mail I
receive is greatly enhanced. 

It works by modifying the buffer content, not the actual message, so
by pressing "g" you will get back the original view. [Might be a wise
thing to do before you take any serious action based on the output
from this program!]

Usage:
------
1. Load the file (with autoload or manually)
2. When you get one of these htmlified mails, type M-x html2text.
3. It is quite simple to alter the behaviour by providing new
   functions, and modifying the lists of tags to react upon.

Changes and modifications are most welcome - Joakim Hove


[-- Attachment #2: html2text --]
[-- Type: application/emacs-lisp, Size: 11023 bytes --]

[-- Attachment #3: Type: text/plain, Size: 303 bytes --]




-- 
==== 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-31 14:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-31 14:39 Joakim Hove [this message]
2001-12-31  3:30 ` Lars Magne Ingebrigtsen
2002-01-02  8:15   ` Joakim Hove

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=k0nsnlzhjkr.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).