Gnus can display HTML articles nicely formatted in the article buffer. There are many methods for doing that, but two of them are kind of default methods.
If your Emacs copy has been built with libxml2 support, then Gnus uses
Emacs’ built-in, plain elisp Simple HTML Renderer
2 which is also used by Emacs’
browser EWW (see EWW in The Emacs Manual).
If your Emacs copy lacks libxml2 support but you have
installed on your system, Gnus uses that to render HTML mail
and display the results in the article buffer (
For a complete overview, consult See Display Customization in The Emacs MIME Manual. This section only describes the default method.
If set to
shr, Gnus uses its own simple HTML
renderer. If set to
gnus-w3m, it uses
External images that have URLs that match this regexp won’t be fetched and displayed. For instance, do block all URLs that have the string “ads” in them, do the following:
(setq gnus-blocked-images "ads")
This can also be a function to be evaluated. If so, it will be
called with the group name as the parameter. The default value is
gnus-block-private-groups, which will return ‘"."’ for
anything that isn’t a newsgroup. This means that no external images
will be fetched as a result of reading mail, so that nobody can use
web bugs (and the like) to track whether you’ve read email.
Also see Misc Article for
Gnus will download and cache images according to how
gnus-blocked-images is set. These images will be stored in
gnus-html-cache-size bytes have been used in that
directory, the oldest files will be deleted. The default is 500MB.
The width to use when rendering HTML. The default is 70.
How big pictures displayed are in relation to the window they’re in. A value of 0.7 (the default) means that they are allowed to take up 70% of the width and height of the window. If they are larger than this, and Emacs supports it, then the images will be rescaled down to fit these criteria.
To use this, make sure that you have
installed. If you have, then Gnus should display HTML
shr displays colors as declared in the HTML
article but tries to adjust them in order to be readable. If you
prefer more contrast, See FAQ 4-16.