From: Karl Fogel <kfogel@red-bean.com>
To: Emacs Devel <emacs-devel@gnu.org>
Subject: HTML mails suddenly exposing style & markup in Gnus.
Date: Mon, 13 Sep 2010 20:29:24 -0400 [thread overview]
Message-ID: <87pqwhf9qz.fsf@kslab.red-bean.com> (raw)
I read mail in Gnus, and after upgrading to latest Bzr today (as I do
every couple of weeks) I am suddenly seeing lots of HTML markup exposed
in mails where it never used to be exposed. It makes the mails very
difficult to read. An example is below.
I haven't seen anything on emacs-devel@ about this, and looking through
the ChangeLogs and bzr logs I haven't seen anything jump out that would
explain it. (Not sure if the recent `html-parse-string' thread has
anything to do with it, but it seems unlikely.)
Old-fashioned plain text mails are not affected, of course. But before
this upgrade, when I got a MIME multipart email with a text/plain part
and a text/html part, Gnus would display the text/plain part. Now it
seems to be [decoding and] displaying the text/html part!
Thus in the example message below, there are two mime parts:
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: Quoted-printable
Content-Disposition: inline
and
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: Base64
Content-Disposition: inline
...and it seems that Gnus now displays the text/html part by default.
Below is what the body of that mail now looks like in the Gnus Article
mode display window (I can supply the full original message file if it
would help). This example is indented by two spaces and anonymized in
some trivial ways:
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="padding: 10px 10px 10px 20px; text-align: left;">
Reply ABOVE THIS LINE to add a comment to this message
</td>
</tr>
<tr>
<td style="padding: 10px 20px 5px 20px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff; text-align: left; border-bottom: 1px solid #dddddd;" colspan="2">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding: 0 0 5px 0; font-weight: normal; color: #999999; text-align: left; font-size: 14px; font-family: Helvetica, Arial, sans-serif;" width="50" valign="top">Project:</td>
<td style="padding: 0 0 5px 10px; font-size: 14px; font-weight: normal; text-align: left; font-family: Helvetica, Arial, sans-serif;" valign="top">https://example.com/foo</td>
</tr>
<tr>
<td style="padding: 0 0 5px 0; font-weight: normal; color: #999999; text-align: left; font-size: 14px; font-family: Helvetica, Arial, sans-serif;" width="50" valign="top">Company:</td>
<td style="padding: 0 0 5px 10px; font-size: 14px; color: #000000; text-align: left; font-family: Helvetica, Arial, sans-serif;" valign="top">OpenPlans</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding-top: 0; padding-bottom: 20px; text-align: left;">
<table cellpadding="0" cellspacing="0" border="0" align="left">
<tr>
<td style="padding: 0 20px 10px 20px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff; text-align: left;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="57" valign="top">
</td>
<td style="padding-left: 15px; font-size: 14px; font-family: Helvetica, Arial, sans-serif;" valign="top">
<h1 style="font-family: Helvetica, Arial, sans-serif; font-size: 14px; color: #000000; margin: 0 0 15px 0; font-weight: normal; line-height: 1.3em;">
Karl Fogel posted a new message:
<span style="font-weight: bold;">https://example.com/foo</span>
</h1>
Abhi, Dan, as we discussed:
Before moving onto the dedicated server for Foo Bar, we’d needed to upgrade WordPress and MediaWiki (WordPress had some nasty security holes recently patched).
The upgrade is now done, and we’re on the most recent released versions of both. Many thanks to Philip for timely help when I hit a snag. I’m now preparing the new Rackspace server to receive the migrated site. Veronica, just keep working on the site as you normally do—we’ll send you a ping when it’s time to pause for the switchover.
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding: 10px 20px 15px 20px; font-family: Helvetica, Arial, sans-serif; font-size: 12px; background-color: #ffffff; text-align: left; border-top: 1px solid #dddddd;">
https://example.com/foo/subscription/unsubscribe when comments are posted to this message
</td>
</tr>
<tr>
<table cellpadding="0" cellspacing="0" border="0" align="left" width="100%">
<tr>
<td style="padding: 10px 20px 20px 20px; font-size: 10px; font-family: Helvetica, Arial, sans-serif; color: #666666; text-align: left; border-top: 1px solid #dddddd;" valign="top">
https://example.com/foo/prefers_text_emails?
</td>
<td style="padding: 0 20px 20px 20px; font-size: 10px; font-family: Helvetica, Arial, sans-serif; color: #666666; text-align: right; border-top: 1px solid #dddddd;">
Delivered by http://example.com/?baz
</td>
</tr>
</table>
</tr>
</table>
next reply other threads:[~2010-09-14 0:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-14 0:29 Karl Fogel [this message]
2010-09-14 0:42 ` HTML mails suddenly exposing style & markup in Gnus Lars Magne Ingebrigtsen
2010-09-14 1:05 ` Karl Fogel
2010-09-14 10:51 ` Lars Magne Ingebrigtsen
2010-09-14 16:14 ` Karl Fogel
2010-09-14 17:18 ` Lars Magne Ingebrigtsen
2010-09-18 12:58 ` Kim F. Storm
2010-09-18 14:26 ` Miles Bader
2010-09-20 8:30 ` Giuseppe Scrivano
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pqwhf9qz.fsf@kslab.red-bean.com \
--to=kfogel@red-bean.com \
--cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).