Created attachment 2014 [details] Email with image links I've got emails from one site (online shop) to rate the experience. It look like this: <td bgcolor="#79abb3" style="width:9.090909090909091%; border-right: 1px solid #ffffff;"> <a href="https://cyfrowe.emaillabs.info.pl/click/?<....>" style="color:#ffffff; text-decoration: none;"> <img class="review-img" alt="3" title="3" style="max-width: 100%; heiht: auto;" border="0" width="53" src="https://cyfrowe.pl/images/mails/nps/o3.jpg" /> </a> </td> Claws-mail don't render this in text view of html part of the email (without Fancy). I think it should render: [3] so whatever is in alt attribute on the image as text with link. Right now claws-mail ignore this html.
Just go another email, was not able to confirm registration, luckily that email also have web interface where I was able to click on the image button. This how the html look like, I've tried to reconstruct the url but was not able to do so in text editor. <td width=3D"600" height=3D"80" align=3D"center" va= lign=3D"middle" bgcolor=3D"#ffffff"> <a href=3D"https://u2031445.ct.sendgrid.net/wf/click?upn=3Drhv1A5uSMq7fYAyPMKWFj9feWry00g7f5xdHLIF1363g-2BQo8727uCrrQv2vPJ0wiTaXsRagY9JSF5x1bDbRo0Whw-2BuuDc-2FGFJSfLO2rIIFOmU-2FzCMcBhldw-2FvjOFTwSN= chjNAqWV46TDP8cY6BjxgA-3D-3D_61NEXIqze2y-2Fhg5S7FIAd5s4sPLz7DH4fbVCrUfFcUWtw53JFjv6wVEcA8dlp5Hu8tDM-2FWh3zfYst74OAzsW00bJSgNl6dOWeNV85TkLzUsQylXo0vkXI= MBmVCcrLVlRsi88eKLyANszvXGGSPBw-2FjvulJvmAE7DUiyN4EgU5-2BMsMwTZ049Si4sP-2FIOKUIaNAB8NCRjKeCEuZfsJVFuvzw-3D-3D" target=3D"_blank" style=3D"display: blo= ck; border: none; margin: 0px; text-decoration: none"> <img style=3D"display: block; border: none;= margin: 0px;" src=3D"https://www.ceeol.com/mail-templates/puser-eml-01/act= ivate-btn.png" width=3D"200" height=3D"40" alt=3D"Activate Button"/></a> </td>
Created attachment 2494 [details] Patch indiscriminately displaying ALT attribute This patch does fix the bug as stated, but also changes some other behaviour: The patch displays the ALT attribute (if present) of *every* <IMG> element. Thus the <IMG>s being the only child of an <A> have their ALT attribute displayed, but so do all other <IMG>s. Personally I am satisfied with this behaviour.