DecodeToStream failing with "Uneven size" error

Found a serious/minor bug in PopTray? Tell me about it.

Moderators: KY Dave, jojobear99, Rdsok

Locked
User avatar
mpot
Fanatic
Posts: 83
Joined: Fri Feb 14, 2003 2:45 pm
Location: Western Australia
Contact:

DecodeToStream failing with "Uneven size" error

Post by mpot » Sun Jan 01, 2006 2:19 pm

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.

User avatar
Renier
Site Admin
Posts: 1957
Joined: Mon Oct 15, 2001 12:54 pm
Location: Cape Town, South-Africa
Contact:

Post by Renier » Wed Jan 04, 2006 8:42 am

You can send me the email and I can try to re-produce it.

User avatar
mpot
Fanatic
Posts: 83
Joined: Fri Feb 14, 2003 2:45 pm
Location: Western Australia
Contact:

Post by mpot » Wed Jan 04, 2006 2:33 pm

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.

User avatar
Renier
Site Admin
Posts: 1957
Joined: Mon Oct 15, 2001 12:54 pm
Location: Cape Town, South-Africa
Contact:

Post by Renier » Sun Jan 22, 2006 10:26 pm

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.

User avatar
mpot
Fanatic
Posts: 83
Joined: Fri Feb 14, 2003 2:45 pm
Location: Western Australia
Contact:

Post by mpot » Tue Jan 24, 2006 2:06 am

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.

Locked

Who is online

Users browsing this forum: No registered users and 2 guests