[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rendering HTML Content in Email Messages
From: |
Johan Bockgård |
Subject: |
Re: Rendering HTML Content in Email Messages |
Date: |
Sat, 08 May 2004 18:34:42 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.2 (usg-unix-v) |
Randy Yates <yates@ieee.org> writes:
> Can someone please help clear up my confusion on HTML article
> washing? I want to keep HTML washing turned off by default, but if
> I've received an HTML message from someone I trust I want to tell
> gnus to render it. Typing "W h" does not work.
>
> I've read about the gnus-article-wash-html function (which is nil on
> startup for me) but I don't understand the interaction between ti
> and gnus-article-wash-function and other gnus-article-washXYZ
> functions. Help!
The default is to use the function specified by
`mm-text-html-renderer' to convert the HTML, but this is
controlled by the `gnus-article-wash-function' variable [it is
used instead, if non-nil].
(info "(gnus)Article Washing")
`mm-text-html-renderer' is used to look up a renderer in
`mm-text-html-washer-alist' (or call directly, if a function). There
are several predefined renderers, including w3 and w3m which use the
functions `gnus-article-wash-html-with-w3' and
`gnus-article-wash-html-with-w3m' respectively (see below).
,----[ C-h v gnus-article-wash-function RET ]
| gnus-article-wash-function's value is nil
|
| Documentation:
| Function used for converting HTML into text.
|
| Defined in `gnus-art'.
`----
,----[ C-h v mm-text-html-renderer RET ]
| mm-text-html-renderer's value is w3
|
| Documentation:
| Render of HTML contents.
| It is one of defined renderer types, or a rendering function.
| The defined renderer types are:
| `w3' : use Emacs/W3;
| `w3m' : use emacs-w3m;
| `w3m-standalone': use w3m;
| `links': use links;
| `lynx' : use lynx;
| `html2text' : use html2text;
| nil : use external viewer.
|
| You can customize this variable.
|
| Defined in `mm-decode'.
`----
,----[ C-h v mm-text-html-washer-alist RET ]
| mm-text-html-washer-alist's value is
| ((w3 . gnus-article-wash-html-with-w3)
| (w3m . gnus-article-wash-html-with-w3m)
| (w3m-standalone mm-inline-wash-with-stdin nil "w3m" "-dump" "-T" "text/html")
| (links mm-inline-wash-with-file mm-links-remove-leading-blank "links"
"-dump" file)
| (lynx mm-inline-wash-with-stdin nil "lynx" "-dump" "-force_html" "-stdin"
"-nolist")
| (html2text html2text))
|
| Documentation:
| The attributes of washer types for text/html.
|
| Defined in `mm-view'.
`----
--
Johan Bockgård