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

PMail corrupted email from Verizon.

Last post 01-04-2020, 14:12 by idw. 12 replies.
Sort Posts: Previous Next
  •  11-29-2019, 14:17

    PMail corrupted email from Verizon.

    I received an email from Verizon which contained a GIF file image of a UPS Shipping Label.

    On AOL's WebMail Server ( who now runs Verizon.Net email services )  the GIF is a quality image and I printed it.

    However in P-Mail that wasn't the case.  If I view the GIF attachment within P-Mail I get "Read Aborted" error with the dialogue labeled "Gif2Bmp".

    When I save the GIF and view it it is very low quality with black banding artifacts.

    When I use AOL's View Message Source and extract RAW email and save to .EML format the EML file is 52KB and views properly in both T-Bird and Windows Live Mail.

    When I am in the attachment section of P-Mail it shows the GIF to be 5.9KB.  When I extract the GIF from the AOL WebMail server or from the EML file I created from there, the GIF 29KB.

    When I view the RAW format in P-Mail and Copy the RAW data and create an EML file, the EML file is only 22KB.

    P-Mail is corrupting the email and truncating the GIF.

    When I look at the RAW email in Notepad++ I see the section...

    Content-Type: application/octet-stream; name=1Z5X18F29094633828.gif
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename=1Z5X18F29094633828.gif

    However in the two different EML files what comes after is portrayed quite differently which may account for the GIF corruption.

     

     


    --
    Dave
  •  11-29-2019, 19:38

    Re: PMail corrupted email from Verizon.

    David H. Lipman:


    P-Mail is corrupting the email and truncating the GIF.

    I doubt it very much, but YMMV. And unfortunately, the information you provided is not sufficient to determine a cause of the problem nor propose a solution. Could you share the troublesome message? It would be nice to know which renderer (and its version) used too.


    Best,

    euler f german
    sete lagoas, mg, brazil
    Pegasus Mail 4.73.639 Standalone - Windows 7 Ultimate
    BearHTML 4.9.9.6 IERenderer 2.6.3.0
    Binaries: C:\PMAIL\Programs
    Mailboxes: C:\PMAIL\MAIL

    InsPMDic — Dictionary Handler Add-on (link on profile)
  •  11-29-2019, 20:57

    Re: PMail corrupted email from Verizon.

    Unfortunately, I can't share the email itself, publicly, as it contains a UPS Shipping label and thus it contains PII.

    However I loaded the two variants of the email and captured representative ScreenShots of the embedded Base64 structure.

    Here is the view when it is extracted from P-Mail

     

    Here it is when it was extracted from AOL WebMail

     

     

    In case one presumes it is a one-off problem and that it isn't reproducible, well it is.   When email is POP'd out of the InBox on AOL, AOL moves it to the Trash Folder of the AOL WebMail server.  All is good there.  The GIF is OK and ~29KB

    When I view it it in P-Mail the GIF is again corrupted and showing it's only ~5.9KB.

    So I go back and move the email out of the AOL WebMail server Trash folder back into the AOL WebMail server InBox and POP it off the server using P-Mail.   Every time, same result.

    So I go back and once again move the email out of the AOL WebMail server Trash folder back into the AOL WebMail server InBox and I then Disabled Verizon POP in P-Mail,  I then loaded MS Outlook and then chose  Send/Receive.  Sure enough,  I get a quality GIF and the MD5 CheckSum  is the same from MS Outlook POP'd off the server as the GIF extracted from the RAW format, used to create an EML file, from the message on the AOL WebMail server.  Only when P-Mail POP'd the email off the server does the GIF get corrupted and only within P-Mail.  Thus I come to the conclusion P-Mail is corrupting the email.

     

     

     



    --
    Dave
  •  11-29-2019, 22:02

    Re: PMail corrupted email from Verizon.

    Hmm, what caught my attention was that the Base64 encoded attachment is spread over nine lines (Pmail) and on a single only (AOL). I'm not sure if the latter is RFC compliant, though we know Microsoft, AOL et al don't care much about RFC. AFAIK Pegasus Mail does and maybe it may have lead it to error. Not a conclusion, just a hunch.

    I pinched this text snip from RFC2045:

    (Soft Line Breaks) The Quoted-Printable encoding REQUIRES that encoded lines be no more than 76 characters long.  If longer lines are to be encoded with the Quoted-Printable encoding, "soft" line breaks must be used.  An equal sign as the last character on a encoded line indicates such a non-significant ("soft") line break in the encoded text.

    All in all, it's still difficult to infer what caused the problem on Pegasus Mail. Maybe Martin Ireland or Michael in der Wiesche can shed lights on this.


    Best,

    euler f german
    sete lagoas, mg, brazil
    Pegasus Mail 4.73.639 Standalone - Windows 7 Ultimate
    BearHTML 4.9.9.6 IERenderer 2.6.3.0
    Binaries: C:\PMAIL\Programs
    Mailboxes: C:\PMAIL\MAIL

    InsPMDic — Dictionary Handler Add-on (link on profile)
  •  11-29-2019, 22:20

    • irelam is not online. Last active: 01-19-2020, 2:31 irelam
    • Top 10 Contributor
    • Joined on 03-23-2007
    • Edmonton, Alberta, Canada
    • SuperStar
    • Points 22,215
    • BetaTeam Moderator

    Re: PMail corrupted email from Verizon.

    From the conversion error GIF2BMP  you got in Pegasus Mail, I would suspect that you were using Pegasus Mail internal message displayer, in Text mode, not either Bearhtml or IERenderer Html renderers.  You should check the message headers for a Content-Type-Multipart line indicating that a Multipart message has been created, which would likely contain both a plain text message and a Rich-Text/Html version of the message body.

    Before we look into this further you should try to click the View menu item to see if rendering in rich/html is better.  If that doesn't work, we will need to see an example message. Please send a copy to me at irelam17@telus.net.  Do not post it to this community site. We will not share it to anyone else.

    Martin 

  •  11-29-2019, 22:32

    Re: PMail corrupted email from Verizon.

    That caught my attention as well.

    I used the Compare Plug-In in Notepad++ and loaded both EML file variants.

    Of course, the first notable difference would be what P-Mail inserts into the header;  X-PMFLAGS [ X-PMFLAGS: 570966016 0 1 PA19AP5U.CNM   ]

    That's obvious so I'll leave it out ( It'll also guarantee their checksum won't be the same as well ).  There were two other notables.

    On the Left Pane, the RAW format from the AOL server.  On the Right Pane, the RAW format from P-Mail

    --------------------------------------------------------------------

    #1 - This one appears to be that P-Mail has removed the period "." delimiter within the URL

     

    #2

     


    --
    Dave
  •  11-29-2019, 22:51

    Re: PMail corrupted email from Verizon.

    irelam:
    Please send a copy to me at irelam17@telus.net.  Do not post it to this community site. We will not share it to anyone else.

     

    Email sent.  Obrigado.


    --
    Dave
  •  01-02-2020, 13:46

    • FJR is not online. Last active: 2020-01-02, 13:47 FJR
    • Top 25 Contributor
    • Joined on 05-10-2007
    • Dortmund / Germany
    • Star
    • Points 7,910

    Re: PMail corrupted email from Verizon.

    Hi David,

    the mail is a "little bit" malformed - as usual with AOL:

    Here it is when it was extracted from AOL WebMail

    1. No line of a mail has to be longer than about 1024 characters - never!!!
    2. AOL declared to attach a file encoded base64. This means, that there is no line longer than 64 characters (under some circumstances 68 characters).
    Here is the view when it is extracted from P-Mail

    I can't see what exactly happens, but Pegasus tries it's best. It seems Pegasus wraps the lines to the allowed 1024 characters. That's the reason why you see more lines in Pegasus than in "original". May be there's going something wrong on wrapping or the poor quality is due to even after wrapping the file still isn't base64 encoded.

    Bye    Olaf

     

  •  01-02-2020, 15:58

    Re: PMail corrupted email from Verizon.

    AOL didn't malform the email.  It was sent from Verizon so if one is to state it was malformed then one must state Verizon malformed the email in its creation.

    However...  It must be noted that when the RAW email is extracted and placed into a TXT file and renamed to .EML, Mozilla Thunderbird and  Microsoft Live Mail had no problem rendering the email.  When Microsoft Outlook was used to POP the email off the server, Microsoft Outlook also had no problem rendering the email.  In short;  AOL Webmail, T-Bird, Microsoft Live Mail and Microsoft Outlook all had zero issues rendering the email and extract the GIF from the Base64 encoded stream.  The problem of rendering the email is only found in P-Mail. 

    It also does not explain why P-Mail had removed the period "." delimiter within the YouTube URL in Line 186 of that email,  That email's secondary bug was very similar to one that I had previously reported where a Newegg invoice font was corrupted because the preceding Period, "." , in the Font size had also removed.


    --
    Dave
  •  01-03-2020, 7:20

    • idw is online. Last active: Sun, Jan 19 2020, 15:26 idw
    • Top 10 Contributor
    • Joined on 03-25-2007
    • Germany
    • SuperStar
    • Points 48,385
    • BetaTeam

    Re: PMail corrupted email from Verizon.

    David H. Lipman:

    irelam:
    Please send a copy to me at irelam17@telus.net.  Do not post it to this community site. We will not share it to anyone else.

     

    Email sent.  Obrigado.

    David/Martin,

    this message never made it through to me, can any of you please send it to <beta-reports [at] pmail.gen.nz> as well and tell me in a personal email what subject to look for so I can find among all the spam messages on this account? Don't try to send the sample to my personal address, it's very likely to be blocked by external spam filters so I'll never get to see it at all if so.


    Michael

    --
    PGP Key ID (RSA 2048): 0xC45D831B
    PGP Plugin for Pegasus Mail: <http://www.pmpgp.de/pmpgp/>
    S/MIME Certificate Fingerprint: 94 c6 b4 71 0c 62 30 88 a5 b2 77 01 74 2b 86 66 3b 7e 65 7c
  •  01-03-2020, 15:11

    Re: PMail corrupted email from Verizon.

    Michael:

    Email sent.  Subject of email;   "Re: PMail corrupted email from Verizon."

    Danke


    --
    Dave
  •  01-03-2020, 15:41

    Re: PMail corrupted email from Verizon.

    David H. Lipman:
    …  In short;  AOL Webmail, T-Bird, Microsoft Live Mail and Microsoft Outlook all had zero issues rendering the email and extract the GIF from the Base64 encoded stream.  The problem of rendering the email is only found in P-Mail.

    There's a (big?) difference between Pegasus Mail and cited e-mail "clients". All of them use full blown browser engines to render messages and that means it can also execute scripts. Another "limitation" of Pegasus Mail is that it plays by the e-mail rules while others either don't respect them or turn a blind eye to them. Note the fact that the bogus message had a single line of code when it should be spread into several lines. This is no problem for a browser. I used to convert my site's HTML code into a single line both to save space and to obfuscate it, what is fine. But when it comes to e-mail there are rules to follow because you don't know which client your addressee/customer is using.

    Unfortunately, companies like MS, AOL, and others used these malpractices to force users to adopt their products. This is not much different of that OAuth2 thing that has nothing to do with security but to force users to abandon their applications (like Pmail) in favor of their Web interface meant to spoil/explore you. Martin Ireland and Michael in der Wiesche are doing a superb job overcoming all sorts of oddities these people produce. I don't know how long they'll last, but I will stick with Pegasus Mail anyway. If the seller can't talk to me, it's his problem not mine.

    I really hope this malformed thing doesn't become Byzantine.


    Best,

    euler f german
    sete lagoas, mg, brazil
    Pegasus Mail 4.73.639 Standalone - Windows 7 Ultimate
    BearHTML 4.9.9.6 IERenderer 2.6.3.0
    Binaries: C:\PMAIL\Programs
    Mailboxes: C:\PMAIL\MAIL

    InsPMDic — Dictionary Handler Add-on (link on profile)
  •  01-04-2020, 14:12

    • idw is online. Last active: Sun, Jan 19 2020, 15:26 idw
    • Top 10 Contributor
    • Joined on 03-25-2007
    • Germany
    • SuperStar
    • Points 48,385
    • BetaTeam

    Re: PMail corrupted email from Verizon.

    David H. Lipman:
    Email sent.  Subject of email;   "Re: PMail corrupted email from Verizon."

    Thanks David, I'll look into it ASAP.


    Michael

    --
    PGP Key ID (RSA 2048): 0xC45D831B
    PGP Plugin for Pegasus Mail: <http://www.pmpgp.de/pmpgp/>
    S/MIME Certificate Fingerprint: 94 c6 b4 71 0c 62 30 88 a5 b2 77 01 74 2b 86 66 3b 7e 65 7c
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