Pegasus Mail & Mercury

Welcome to the Community for Pegasus Mail and
The Mercury Mail Transport System, the Internet's longest-serving PC e-mail system!
Welcome to Pegasus Mail & Mercury Sign in | Join | Help
in
Home Blogs Forums Downloads Pegasus Mail Overview Mercury Overview Wiki

Style tag rendering for HTML mail

Last post 12-17-2011, 22:20 by irelam. 17 replies.
Page 1 of 2 (18 items)   1 2 Next >
Sort Posts: Previous Next
  •  12-14-2011, 16:35

    • radhx is not online. Last active: 14-02-2012, 7:57 radhx
    • Top 50 Contributor
    • Joined on 12-08-2010
    • Mumbai, India
    • Member
    • Points 1,055

    Style tag rendering for HTML mail

    Attachment: Style.zip

    Hi,

    Noticed since last week or so that <style></style> tags are not displayed correctly.

    A part of style tag is displayed at the top, except from which there seems no other problem.

    ---

    e.g.1 - 

    a { color: #003399; } p { margin:2px 0;line-height:16px; }

    is displayed at the top of mail body for - 

    <style type="text/css">

        a { color: #003399; }

        p { margin:2px 0;line-height:16px; }

    </style>

    --- 

    e.g.2 - (Style2.jpg in attached zip)

    body { font:12px Helvetica, Arial, Verdana, sans-serif; } a { color: #003399; }

    is displayed at the top of mail body for - 

    <style type="text/css">

    body { font:12px Helvetica, Arial, Verdana, sans-serif; }
    a { color: #003399; }

    </style>
    ---
     
    I copied the html part from raw view to a separate file with .html extension and opening it in browser (chrome) it worked fine. (Test.html in attached zip)
     
    Thanks & Regards,
    Rad.

  •  12-14-2011, 16:49

    • bfluet is not online. Last active: 17-05-2012, 18:30 bfluet
    • Top 25 Contributor
    • Joined on 05-10-2007
    • North Carolina, USA
    • Participant
    • Points 2,670

    Re: Style tag rendering for HTML mail

    Using IERenderer?  If so, make sure you are using the latest version (2.4.7.2 was released yesterday).  Be sure to pay attention to the fact that starting with v2.4.7.0 an update LibTidy.dll is needed.  The URL to the IERenderer download site is below.

    http://community.pmail.com/files/folders/community_add-ons_for_pegasus_mail/entry24145.aspx


    Brian Fluet
  •  12-14-2011, 19:01

    • idw is not online. Last active: Fri, 18. May 2012, 23:50 idw
    • Top 10 Contributor
    • Joined on 03-25-2007
    • Germany
    • SuperStar
    • Points 29,695
    • BetaTeam

    Re: Style tag rendering for HTML mail

    bfluet:
    Using IERenderer?  If so, make sure you are using the latest version (2.4.7.2 was released yesterday).  Be sure to pay attention to the fact that starting with v2.4.7.0 an update LibTidy.dll is needed.  The URL to the IERenderer download site is below.

    http://community.pmail.com/files/folders/community_add-ons_for_pegasus_mail/entry24145.aspx

    My recommendations as well ...


    Michael

    --
    PGP Key ID (RSA 2048): 0xC45D831B
    PGP Plugin for Pegasus Mail: <http://www.pmpgp.de/pmpgp/>
    S/MIME Certificate Fingerprint: 26 5c a3 60 02 c6 e3 8a 75 70 d5 6a 67 ff d3 8d b0 b5 5e 5b
  •  12-15-2011, 6:58

    • radhx is not online. Last active: 14-02-2012, 7:57 radhx
    • Top 50 Contributor
    • Joined on 12-08-2010
    • Mumbai, India
    • Member
    • Points 1,055

    Re: Style tag rendering for HTML mail

    Attachment: Style3.zip

    Hi bfluet & idw,

    Using PMail v4.62

    Updated IERenderer from v2.4.7.1 to v2.4.7.2 as advised.

    Already have LibTidy.dll v1.0.5.0.

    Still having trouble with mails with <style> tag.

    Style3.jpg (attached)

    --- 

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

    <html>

        <head>

            <title>Traffic Swarm | Personal Mobile Website</title>

            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

            <style type="text/css">

                /* hack to center content in hotmail */

                .ReadMsgBody { width: 100%; }

                .ExternalClass { width: 100%; }

            </style>

        </head>

        <body style="padding: 0pt; background-color: #ffffff; margin: 0pt;">

    ---

    Same code in Style3.html loads properly. (attached)

    Thanks & Regards,

    Rad. 

     

  •  12-15-2011, 7:27

    • idw is not online. Last active: Fri, 18. May 2012, 23:50 idw
    • Top 10 Contributor
    • Joined on 03-25-2007
    • Germany
    • SuperStar
    • Points 29,695
    • BetaTeam

    Re: Style tag rendering for HTML mail

    radhx:
    Still having trouble with mails with <style> tag.

    Rad,

    What happens if using BearHtml? And, if you want me to fix this I need the CNM file of the message, it doesn't help to get the extracted HTML like attached: There might be something invisible involved (like non-standard line breaks created by a different OS).


    Michael

    --
    PGP Key ID (RSA 2048): 0xC45D831B
    PGP Plugin for Pegasus Mail: <http://www.pmpgp.de/pmpgp/>
    S/MIME Certificate Fingerprint: 26 5c a3 60 02 c6 e3 8a 75 70 d5 6a 67 ff d3 8d b0 b5 5e 5b
  •  12-15-2011, 10:56

    • radhx is not online. Last active: 14-02-2012, 7:57 radhx
    • Top 50 Contributor
    • Joined on 12-08-2010
    • Mumbai, India
    • Member
    • Points 1,055

    Re: Style tag rendering for HTML mail

    Attachment: CNMs.zip

    Hi idw,

    Looks like issue is on BearHtml side.

    I disabled IERenderer for BearHtml to kick in. The issue persisted.

    But when I re-enabled IERenderer, the <style> tag problem got resolved.

    Just To make sure I again disabled IERenderer and same issue popped up as before which was rectified by re-enabling IERenderer.

    I am attaching 2 .CNM files for your perusal. 

    Thanks & Regards,

    Rad.

     

  •  12-15-2011, 15:30

    • idw is not online. Last active: Fri, 18. May 2012, 23:50 idw
    • Top 10 Contributor
    • Joined on 03-25-2007
    • Germany
    • SuperStar
    • Points 29,695
    • BetaTeam

    Re: Style tag rendering for HTML mail

    radhx:
    I disabled IERenderer for BearHtml to kick in. The issue persisted.

    But when I re-enabled IERenderer, the <style> tag problem got resolved.

    Rad, I can't duplicate this issue with neither renderer, please check whether updating BearHtml may help.


    Michael

    --
    PGP Key ID (RSA 2048): 0xC45D831B
    PGP Plugin for Pegasus Mail: <http://www.pmpgp.de/pmpgp/>
    S/MIME Certificate Fingerprint: 26 5c a3 60 02 c6 e3 8a 75 70 d5 6a 67 ff d3 8d b0 b5 5e 5b
  •  12-15-2011, 16:58

    • radhx is not online. Last active: 14-02-2012, 7:57 radhx
    • Top 50 Contributor
    • Joined on 12-08-2010
    • Mumbai, India
    • Member
    • Points 1,055

    Re: Style tag rendering for HTML mail

    Hi idw,

    Updated BearHtml from v4.6.7.2 to v4.6.8.0 by extracting contents of Bear4680.zip and BearSupport.zip into PMAIL\Programs folder.

    Still no luck... Disabling IERenderer displays the <style> tag syntax on the top in Preview pane.

    Today I have updated IERenderer and BearHtml. LibTidy.dll was already v1.0.5.0.

    Is there any other pmail component which I have missed out on update?

    Pegasus Info:

    --- 

    Pegasus Mail for Microsoft Windows

    Copyright (C) 1992-2011, David Harris, all rights reserved

    Electronic mail to support@pmail.gen.nz.


    WinPMail version: Version 4.62 (Win32), Aug 11 2011, build ID 191

    Language resources: Standard UK English resource set

    Extension Manager version: 1.14

    Operating mode: Standalone

    User name and ID: admin, 0

    Windows version: 5.1

    Windows flag word: 0

    WINPMAIL.EXE directory: D:\PMAIL\Programs

    Home mailbox location: D:\PMAIL\MAIL\admin

    New mailbox location: D:\PMAIL\MAIL\admin

    TMP environment variable: C:\DOCUME~1\Rad\LOCALS~1\Temp

    TEMP environment variable: C:\DOCUME~1\Rad\LOCALS~1\Temp

    LAN-based SMTP support: N, N, N

    NetWare MHS support: N, N, N

    Built-in TCP/IP support: Enabled

      - WINSOCK version: WinSock 2.0

      - WINSOCK path: C:\WINDOWS\system32\WSOCK32.DLL

    Commandline: -roam -A

    Active -Z options: 33024

    PMR variable: (None)

    PML variable: (None)

    MAI variable: (None)

    NB variable: (None)

    Autofiltering folders: 9 (9 active, 0 inactive)

    Last new mail count: 0

    Message size soft limit: 0 bytes

    Message size hard limit: 0 bytes

    Attachment size soft limit: 0 bytes

    Attachment size hard limit: 0 bytes

    ---

    Thanks & Regards,

    Rad. 

  •  12-15-2011, 17:46

    • idw is not online. Last active: Fri, 18. May 2012, 23:50 idw
    • Top 10 Contributor
    • Joined on 03-25-2007
    • Germany
    • SuperStar
    • Points 29,695
    • BetaTeam

    Re: Style tag rendering for HTML mail

    radhx:
    Updated BearHtml from v4.6.7.2 to v4.6.8.0 by extracting contents of Bear4680.zip and BearSupport.zip into PMAIL\Programs folder.

    Still no luck... Disabling IERenderer displays the <style> tag syntax on the top in Preview pane.

    Once again I'm not sure whether AVG has an impact on this: The CNM files you attached have these "X-AVG: Scanning" headers which seems to indicate that AVG's scans aren't finished when these messages are rendered, quite similar to the other issue you encountered recently ...


    Michael

    --
    PGP Key ID (RSA 2048): 0xC45D831B
    PGP Plugin for Pegasus Mail: <http://www.pmpgp.de/pmpgp/>
    S/MIME Certificate Fingerprint: 26 5c a3 60 02 c6 e3 8a 75 70 d5 6a 67 ff d3 8d b0 b5 5e 5b
  •  12-15-2011, 19:11

    Re: Style tag rendering for HTML mail

    > Once again I'm not sure whether AVG has an impact on this: The CNM files you attached
    > have these "X-AVG: Scanning" headers which seems to indicate that AVG's scans aren't
    > finished when these messages are rendered, quite similar to the other issue you
    > encountered recently ...

     

    Michael/Martin

     FWIW, this looks a lot like what I've reported in in the beta list using BearHTML.  I now have a whole folder of HTML messages from various sources where BearHTML shows HTML code but IERenderer displays them normally.  I am using Avast but it does not touch e-mail on either sending or receiving.

     


    Thomas R. Stephenson
    San Jose, California
    Member of Pegasus Mail Support Team

    I do not answer private messages from the forum. If you want to contact me use email to techsupp@tstephenson.com.
  •  12-15-2011, 19:17

    • idw is not online. Last active: Fri, 18. May 2012, 23:50 idw
    • Top 10 Contributor
    • Joined on 03-25-2007
    • Germany
    • SuperStar
    • Points 29,695
    • BetaTeam

    Re: Style tag rendering for HTML mail

    Thomas R. Stephenson:
    FWIW, this looks a lot like what I've reported in in the beta list using BearHTML.  I now have a whole folder of HTML messages from various sources where BearHTML shows HTML code but IERenderer displays them normally.  I am using Avast but it does not touch e-mail on either sending or receiving.

    But I wonder why this doesn't occur on my system with BearHtml, maybe you should provide me with some of these messages as well for testing, Thomas.


    Michael

    --
    PGP Key ID (RSA 2048): 0xC45D831B
    PGP Plugin for Pegasus Mail: <http://www.pmpgp.de/pmpgp/>
    S/MIME Certificate Fingerprint: 26 5c a3 60 02 c6 e3 8a 75 70 d5 6a 67 ff d3 8d b0 b5 5e 5b
  •  12-15-2011, 20:27

    Re: Style tag rendering for HTML mail

    > But I wonder why this doesn't occur on my system with BearHtml, maybe you should provide
    > me with some of these messages as well for testing, Thomas.

    Michael,

    I'll send these to you offline.  FWIW, the difference might be because I am running 3-4 instances of Pegasus Mail, generally pointing to different Pegasus Mail installs.  Right now I am running Pegasus Mail versions 4.63, 4.62, 4.51 and 4.41 pointing to Windows and Netware.  If anyone uses what is in registry for paths and such it would not work at all, they have to read the paths setup in pmail.cfg and the user info from pmail.ini.  ;-)

    Thomas

     

     


    Thomas R. Stephenson
    San Jose, California
    Member of Pegasus Mail Support Team

    I do not answer private messages from the forum. If you want to contact me use email to techsupp@tstephenson.com.
  •  12-16-2011, 6:12

    • radhx is not online. Last active: 14-02-2012, 7:57 radhx
    • Top 50 Contributor
    • Joined on 12-08-2010
    • Mumbai, India
    • Member
    • Points 1,055

    Re: Style tag rendering for HTML mail

    Attachment: Style4.zip

    idw:
    Once again I'm not sure whether AVG has an impact on this: The CNM files you attached have these "X-AVG: Scanning" headers which seems to indicate that AVG's scans aren't finished when these messages are rendered, quite similar to the other issue you encountered recently ...

    Hi idw,

    AVG addressed the Certification issue in their latest release 2012.0.1890 which is now working fine with PMail without raising HTML display issues.

    Also, just by activating/using IERenderer, this issue is completely taken care off, irrespective of AVG.

    Till now only <style> tag has popped up this problem. All the contents between <style></style>, that too multiple tags, are being displayed on the top line of message body in preview pane when BearHtml is in use.

    I am attaching today's latest .CNM.

    Thanks & Regards,

    Rad.

     

  •  12-16-2011, 17:57

    • idw is not online. Last active: Fri, 18. May 2012, 23:50 idw
    • Top 10 Contributor
    • Joined on 03-25-2007
    • Germany
    • SuperStar
    • Points 29,695
    • BetaTeam

    Re: Style tag rendering for HTML mail

    Attachment: bearhtml.ini.txt

    radhx:
    Till now only <style> tag has popped up this problem. All the contents between <style></style>, that too multiple tags, are being displayed on the top line of message body in preview pane when BearHtml is in use.

    Please try with the attached INI file (remove the ".txt" extension, it's just there for getting through the upload filter, restart Pegasus Mail for making sure it's being read), maybe you can figure out what causes your issue: At least it fixed the display for Thomas.


    Michael

    --
    PGP Key ID (RSA 2048): 0xC45D831B
    PGP Plugin for Pegasus Mail: <http://www.pmpgp.de/pmpgp/>
    S/MIME Certificate Fingerprint: 26 5c a3 60 02 c6 e3 8a 75 70 d5 6a 67 ff d3 8d b0 b5 5e 5b
  •  12-16-2011, 19:42

    • irelam is not online. Last active: 05-19-2012, 3:03 irelam
    • Top 10 Contributor
    • Joined on 03-23-2007
    • Edmonton, Alberta, Canada
    • Star
    • Points 9,075
    • BetaTeam Moderator

    Re: Style tag rendering for HTML mail

    The new Libtidy fixes this problem, it is not a Bearhtml problem. The message provided displays properly with the updated Libtidy. You can get the fix from the following location:

    http://community.pmail.com/files/folders/community_add-ons_for_pegasus_mail/entry31741.aspx

    Martin

Page 1 of 2 (18 items)   1 2 Next >
View as RSS news feed in XML

Contact | Advertise | Host provider: PraktIT | Terms of Use | Privacy Statement
Copyright © 2007-2011 David Harris / Peter Strömblad. | Pegasus Mail Home Page