Gnus development mailing list
 help / color / mirror / Atom feed
From: david.goldberg6@verizon.net (Dave Goldberg)
To: ding@gnus.org
Subject: Re: HTML-mail: extracted text appears twice
Date: Sat, 06 Sep 2014 18:23:59 -0400	[thread overview]
Message-ID: <84k35g5qww.fsf@davestoy.home> (raw)
In-Reply-To: <87d2baw9xe.fsf@mat.ucm.es> (Uwe Brauer's message of "Fri, 05 Sep	2014 14:04:13 +0200")


>> I've never seen this and since the primary email client at work is
>> outlook just about all my email comes in as html, typically in the
>> form of multipart/alternative with a plain text option as well. 
>> Perhaps you've customized one of the variables dealing with multipart
>> display with this bad side effect?

> Hm yes this could be the reason:

> My setting is:



> (setq gnus-mime-display-multipart-related-as-mixed t)
> (setq gnus-mime-display-multipart-as-mixed t)  
> (setq gnus-buttonized-mime-types nil)


> (setq
> mm-discouraged-alternatives nil
> gnus-buttonized-mime-types '("multipart/signed" "multipart/encrypted")
> mm-text-html-renderer 'w3m
>  mm-url-use-external t)

> I added 
> (setq
>  mm-automatic-display (remove "text/html" mm-automatic-display))

> And now I see things like 

> [...]

I have this in my .emacs, which basically adds buttons if there's anything besides a pure text/plain message.  My view of the typical  multipart/alternative (text/plain and text/html) messages I get from outlook is something like this:

(*) text/plain ( ) text/html

Message text here ...

If I want the html to be rendered (I use shr) which I occasionally do for dealing with forms, I middle click on the text/html button and that causes it to render in the article buffer.  When I reply with original, I get a version of whichever is being displayed in the article buffer at the time.

;;;; show the text/plain part before the text/html part in multpart/alternative

(require 'mm-decode)

(setq gnus-inhibit-mime-unbuttonizing t
      mm-discouraged-alternatives '("text/html"))

-- 
Dave Goldberg
david.goldberg6@verizon.net



  parent reply	other threads:[~2014-09-06 22:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-04 12:39 Uwe Brauer
2014-09-05  2:05 ` Dave Goldberg
2014-09-05 12:04   ` Uwe Brauer
2014-09-06  8:34     ` Sharon Kimble
2014-09-06 22:23     ` Dave Goldberg [this message]
2014-09-07  9:00       ` Uwe Brauer

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=84k35g5qww.fsf@davestoy.home \
    --to=david.goldberg6@verizon.net \
    --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).