Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Ichimusai <ichi@ichimusai.org>
Subject: HTML in mail
Date: 28 Aug 2002 18:26:00 +0200	[thread overview]
Message-ID: <m365xvx84n.fsf@ichimusai.org> (raw)


At the company where I work, several people sends mail in RTF[1]. The
mailserver however changes it into HTML before it is dumped in my
mailbox and I installed the w3 package to cope with that.

It works well with those who use clients that produce proper HTML, for
example Eudora, the w3 package renders it well and it works
satisfactory.

But the RTF mail from Outlook that has been converted to HTML on the
mailserver does not render in w3. I have not investigated it further,
but it says "Drawing../" etc in the status line for a second, and then
it says that it gives up and shows it as plain text, with the HTML
tags and all. There is something in the "HTML" that Exchange produce
that makes w3 give up on it, and when I press W h to wash the mail all
text goes and all I get is a blank message with only the important
headers showing.

For fun I saved a mail, stripped everything but the HTML and ran it
through validator.w3.org and it came up with 53 errors (when I
selected DTD manually) and this was a small mail with perhaps 10 lines
of text.

To the question -- I know there are many very skilled people in here
who knows Emacs and Gnus much better then I do, what I would like is a
function that deletes everything betwen < and > so that I can at least
get rid of the ugly HTML tags when I read/reply to a mail. I am sure
this is easily done in a couple of lines of eLisp, but unfortunately I
am not skilled enough to write this myself, I would be very happy if
someone would lend me a couple of minutes if his/hers time and help me
with this, and how to hook that function into the wash keymap of Gnus
so that I can easily wash away the non-standard "HTML" of the Exchange
server.

[1] Rich Text Format (yes they use MS Outlook).

-- 
  // AA#769 ICQ: 1645566 http://www.ichimusai.org/
\X/  ASCII ribbon campaign - No HTML, RTF or MS Word in mail
Fools seldom defer
    -- Guy King, uk.rec.sheds


             reply	other threads:[~2002-08-28 16:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-28 16:26 Ichimusai [this message]
2002-08-28 16:29 ` Ichimusai
2002-08-28 17:00 ` Vasily Korytov
     [not found]   ` <m3it1ueqkj.fsf_-_@ichimusai.org>
     [not found]     ` <871y8ig4cy.fsf@unix.home>
2002-08-28 19:54       ` HTML in mail (or perhaps replace-regexp might work?) Vasily Korytov
2002-08-28 20:15       ` Ichimusai
2002-08-28 20:31         ` Ichimusai
     [not found]       ` <5llm6qwvio.fsf@rum.cs.yale.edu>
     [not found]         ` <wupr9gda.fsf@ID-23066.news.dfncis.de>
2002-09-13 15:26           ` Stefan Monnier <foo@acm.com>
2002-09-14 15:15             ` Clemens Fischer

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=m365xvx84n.fsf@ichimusai.org \
    --to=ichi@ichimusai.org \
    /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).