From: Chris Marusich <cmmarusich@gmail.com>
To: ding@gnus.org
Subject: Re: Never automatically display HTML in an email
Date: Tue, 05 Jun 2018 00:27:37 -0700 [thread overview]
Message-ID: <87y3ftofpy.fsf@gmail.com> (raw)
In-Reply-To: <m21sdrrl65.fsf@purvis.id.au>
[-- Attachment #1: Type: text/plain, Size: 2849 bytes --]
Hi Malcolm, Emanuel, Andreas, and Adam,
Thank you for your replies!
Malcolm Purvis <malcolm@purvis.id.au> writes:
> I use the following settings, which displays the text part of the
> message whenever possible, but leaves a button that will display the
> HTML if I want:
>
> (setq
> gnus-buttonized-mime-types '("multipart/alternative" "multipart/signed")
> mm-discouraged-alternatives '("text/html" "image/.*")
> gnus-mime-display-multipart-related-as-mixed t
> )
Emanuel Berg <moasen@zoho.com> writes:
> This is what I have: [1]
>
> ;;; HTML and NON-ASCII
> (setq gnus-inhibit-images t)
> (setq mm-discouraged-alternatives '("text/html" "text/richtext"))
> (setq mm-text-html-renderer 'w3m)
> ;; (setq mm-automatic-display
> ;; (cl-remove-if (remove "text/html" mm-automatic-display))
Adam Sjøgren <asjo@koldfront.dk> writes:
> Instead of mm-inline-override-types I have this:
>
> (setq mm-automatic-display (remove "text/html" mm-automatic-display))
Unfortunately, I couldn't get these various methods to work, even though
I did try fiddling with them in various ways like suggested above. In
the end, the only way I found to work around it was to tell Gnus to
ignore HTML entirely, which is OK but a bit heavy-handed.
Andreas Schwab <schwab@linux-m68k.org> writes:
> I'm using these settings:
>
> (setq mm-discouraged-alternatives '("text/html" "text/richtext" "text/enriched"
> "multipart/related" "multipart/mixed"))
> (setq mm-inline-override-types '("application/octet-stream" "text/html"))
This may actually be what I want! Using mm-inline-override-types like
this seems to suppress the automatic display of HTML, and it also leaves
a button for me to interact with. Excellent!
This allows me to view the HTML in an external browser by typing "K H"
(gnus-article-browse-html-article), which is quite nice. However, when
I type RET (gnus-article-press-button), it displays the HTML in-line,
instead of rendering it. This leads me to three more questions:
* Is mm-inline-override-types supposed to be used like this? It doesn't
seem to be mentioned in the manual, so I'm a little concerned it might
be private or something.
* Is it possible to coax Gnus into displaying the HTML part in-line when
I invoke gnus-article-press-button, even though I've set
mm-inline-override-types to treat text/html as an attachment?
* Why might it be that when I invoke gnus-article-browse-html-article,
the article is opened externally using IceCat rather than internally
using shm? The value of mm-text-html-renderer is shr, so I expected
Gnus to open the HTML part using shr. I was surprised that it used
IceCat, but it isn't a big deal, I suppose.
Thank you for all your advice! It's been very helpful.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2018-06-05 7:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-01 4:02 Chris Marusich
2018-06-01 8:00 ` Malcolm Purvis
2018-06-05 7:27 ` Chris Marusich [this message]
2018-06-05 15:24 ` Jorge A. Alfaro-Murillo
2018-06-05 15:33 ` Emanuel Berg
2018-06-06 4:42 ` Chris Marusich
2018-06-06 16:58 ` Eric Abrahamsen
2018-06-06 17:37 ` Emanuel Berg
2018-06-06 18:06 ` Eric Abrahamsen
2018-06-06 18:41 ` Emanuel Berg
2018-06-06 18:51 ` Eric Abrahamsen
2018-06-05 19:01 ` Andreas Schwab
2018-06-01 8:05 ` Andreas Schwab
2018-06-01 9:27 ` Adam Sjøgren
2018-06-01 11:56 ` Emanuel Berg
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=87y3ftofpy.fsf@gmail.com \
--to=cmmarusich@gmail.com \
--cc=ding@gnus.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).