Gnus development mailing list
 help / color / mirror / Atom feed
From: Chris Marusich <cmmarusich@gmail.com>
To: ding@gnus.org
Subject: Never automatically display HTML in an email
Date: Thu, 31 May 2018 21:02:06 -0700	[thread overview]
Message-ID: <87lgbzb1dt.fsf@gmail.com> (raw)

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

Hi,

I use Gnus for email.  How can I make Gnus never automatically display
HTML in an email?  I'd also like the option to view the HTML in Gnus if
I want to, but that isn't a hard requirement.

Here's what I've tried so far, with limited success:

* Disable automatic display of HTML (as suggested in (gnus) FAQ 4-6):

    (setq mm-automatic-display '("text/plain"))

  This did not work; sometimes Gnus would still automatically show me
  HTML in email when it appeared in a multipart message.

* Ensure that Gnus does not accidentally render HTML in-line when it
  appears in a multipart/related email (as suggested in (gnus) MIME
  Commands):

    (setq gnus-mime-display-multipart-related-as-mixed t)

  This did not work (even after adding "text/html" to
  mm-discouraged-alternatives); Gnus would still automatically show me
  HTML in email when it appeared in a multipart message.  I also tried
  the variations of this variable
  (gnus-mime-display-multipart-alternative-as-mixed,
  gnus-mime-display-multipart-as-mixed), but the results were the same.

* Ignore HTML entirely:

    (setq gnus-ignored-mime-types '("text/html"))

  This DID work, actually.  However, it's overkill for me, since it
  makes it a little difficult to view the HTML in Gnus or save it for
  viewing in another program.

  In addition, even though this effectively removed HTML parts from some
  emails, I was surprised to discover that for multipart emails, I was
  still able to press the button for the HTML part and view it in Gnus.
  I'm fine with that, since it still meets my requirements, but I'm
  surprised because I expected that Gnus would not even let me view the
  HTML part in this way.  After all, I thought I had told Gnus to
  totally ignore HTML.  Is this the intended behavior?

If anyone has any tips on how to make Gnus never automatically display
HTML in emails, while at the same time giving me the option of
displaying the HTML in Gnus if I want to, that would be really nice!

Thank you,

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

             reply	other threads:[~2018-06-01  4:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-01  4:02 Chris Marusich [this message]
2018-06-01  8:00 ` Malcolm Purvis
2018-06-05  7:27   ` Chris Marusich
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=87lgbzb1dt.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).