Page 2 of 2

Posted: Fri Aug 24, 2007 3:23 pm
by aedmonds
Thanks for the reply. The period issue seems to be resolved. I tested the new Swift version against all the emails that were being truncated at the period.

But now it seems I've landed into what chuckl was describing in his last post. It appears to be pretty random in it's selection. Emails with embedded images seem to have the hardest time but it isn't 100% consistent. The line that it breaks at most of the time is:

Code: Select all

<META http-equiv=Content-Type content="text/html; charset=us-ascii">
The line is included but always immediately following it is Swift's content boundary. (Again, this seems to happen more often with emails with embedded images.)

Is there some weird ASCII character I need to be checking for? I've made sure that none of the emails contain the NUL bytes.

Thanks for the help.

-Aaron

Posted: Fri Aug 24, 2007 3:50 pm
by Chris Corbyn
~ aedmonds, could you send an example email as a .txt file attachment to chris@w3style.co.uk please? :) I'll have a closer look. Just make sure it's one that you know has caused a problem in the past ;)

EDIT | Posts = 10337 :lol: almost!

Posted: Mon Sep 10, 2007 11:56 am
by aedmonds
Any progress on what I sent? Do you need me to send other examples?

-Aaron

Posted: Mon Sep 10, 2007 1:23 pm
by Chris Corbyn
Sorry for not getting back. I'm totally overrun with other things lately :( I did look at the email you sent and couldn't see anything immediately obvious which would cause a problem.

One thing that would help to pin it down is to fiddle with the encoding. For example, try sending with Base64 or 8bit encoding explicitly and see if the problem goes away. The reason I say that is that I have an akward feeling my QP encoding code isn't as solid as it could be.

Code: Select all

$message->setEncoding("8bit"); //or base64

//and/or

$part->setEncoding("8bit"); //or base64

Posted: Mon Sep 10, 2007 2:40 pm
by aedmonds
Thanks Chris! Early testing shows that everything seems to be working much better than before.

-Aaron