Page 1 of 1

DecodeToStream failing with "Uneven size" error

Posted: Sun Jan 01, 2006 2:19 pm
by mpot
While attempting to preview an email in my inbox, I get the error shown in the screenshot below:
Image

The email causing this error is definitely a spam email (spamassassin has tagged it), but PopTray shouldn't fail to display the email.....

I can provide a copy of the email for further debugging if required.

Note that I'm using PopTray 3.2beta2.

Cheers,
Martin.

Posted: Wed Jan 04, 2006 8:42 am
by Renier
You can send me the email and I can try to re-produce it.

Posted: Wed Jan 04, 2006 2:33 pm
by mpot
Renier wrote:You can send me the email and I can try to re-produce it.
Email has been sent.

If you can't reproduce with the attached email, I can setup a test email box on my mailserver, and can copy the bad email into that mailbox, so you can access it via pop3.

Cheers,
Martin.

Posted: Sun Jan 22, 2006 10:26 pm
by Renier
This happens because the Base64 data in the message is invalid. Base64 data should always be a mulitple of 4.

The code that handles this in Indy, so I can't easily fix it. I am now (PopTray 3.2 (beta 3)) just ignoring the error when I encounter it.

Posted: Tue Jan 24, 2006 2:06 am
by mpot
Renier wrote:This happens because the Base64 data in the message is invalid. Base64 data should always be a mulitple of 4.

The code that handles this in Indy, so I can't easily fix it. I am now (PopTray 3.2 (beta 3)) just ignoring the error when I encounter it.
After upgrading to beta4, I can confirm PopTray can now preview these messages with no errors.

Thanks Renier.

Cheers,
Martin.