all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* HTML mails suddenly exposing style & markup in Gnus.
@ 2010-09-14  0:29 Karl Fogel
  2010-09-14  0:42 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: Karl Fogel @ 2010-09-14  0:29 UTC (permalink / raw)
  To: Emacs Devel

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&#8217;d needed to upgrade WordPress and MediaWiki (WordPress had some nasty security holes recently patched).
  
  	The upgrade is now done, and we&#8217;re on the most recent released versions of both.  Many thanks to Philip for timely help when I hit a snag.  I&#8217;m now preparing the new Rackspace server to receive the migrated site.  Veronica, just keep working on the site as you normally do&#8212;we&#8217;ll send you a ping when it&#8217;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>



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-09-20  8:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-14  0:29 HTML mails suddenly exposing style & markup in Gnus Karl Fogel
2010-09-14  0:42 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.