#2783 v1.5.2 message HTML doesn't display correctly

open
nobody
5
2012-02-07
2012-02-07
Craig Arno
No

I just installed 1.5.2 from the Sqirrelmail web site. I just received HTML formatted messages from Discover Card and American Express. Neither displays correctly. The message body appears pushed most of the way to the right, and is largely unreadable. The same messages render fine in Thunderbird v10.0

Squirrelmail is otherwise working as expected and appears to work properly with simpler messages.

I can forward the messages to a developer for debug if needed.

Discussion

  • It'd be better if you could post the offending messages here (sanitize personal data if needed). But if you can't do that, you can send to me directly.

     
  • Craig Arno
    Craig Arno
    2012-02-08

    Discover Card Reminder-TXT/HTML in EML format

     
  • Craig Arno
    Craig Arno
    2012-02-08

    Two files added. Of the two, the AMEX one will likely be easier to debug since it is shorter and simpler. I sanitized these to the best of my ability. There are two more (not included), one from Amazon and another from Schwab. I didn't include these because sanitizing the Discover one was enough work, removing names, account info, HTML "keys" pointing to my account info etc.

    Does SquirrelMail use an HTML Frame for the whole message body? If not, I've had good success using frames in web pages to display other sites random HTML (just a thought, since I have little clue how SquirrelMail is designed).

     
  • You can configure emails to be displayed inside of an iframe, but that may or may not help. See "11. Tweaks" --> "1. Display html mails in iframe" in the config tool or $use_iframe in the config.php file. I won't have time to look at the issue myself for possibly several days.

     
  • Craig Arno
    Craig Arno
    2012-02-09

    Excellent! turning on iframes resolved the issue for me (so far). The solution to this issue may be as simple as leave this "tweak" on by default and allow the admin (or user) turn it off if desired.

    Since this feature affects the user experience, I'd tend to make it a user override capable feature which defaults to iframes if HTML is on.

    Thank you for suggesting and pointing me to this feature!