emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HTML mails suddenly exposing style & markup in Gnus.


From: Karl Fogel
Subject: HTML mails suddenly exposing style & markup in Gnus.
Date: Mon, 13 Sep 2010 20:29:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]