Login  
Search All Forums
Dart Home | PowerTCP Mail for .NET | Custom Development Reply | PowerTCP Mail for .NET Topics | Forums   
AuthorForum: PowerTCP Mail for .NET
Topic: HTML Mail Header Character Code Compression
jaltrichter

From: Newark, DE USA
Posts: 4
Member Since: 07/08/08
posted May 4, 2009 10:01 PM

I am using Power TCP Mail 3.0.3.2 in an application to download email messages, transform them, and store them in another application.

I am having in an issue with the control transforming HTML contol character codes (ex. "=01") into the corresponding control characters.

Here is the example:

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
...
xmlns:udcp2p=3D"http://schemas.microsoft.com/data/udc/parttopart" =
xmlns:st=3D"=01" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

The line
 "xmlns:st=3D"=01" ="
is tranformed into
 "xmlns:st=3D"(SOH)" =

SOH is x01, for those too young to remember.

Is there a configuration flag to prevent this header transformation from happening, or some other way to avoid this problem?

Thanks for your assistance.

Jim


jaltrichter

From: Newark, DE USA
Posts: 4
Member Since: 07/08/08
posted May 4, 2009 10:18 PM

Apolgies, a small typo. The affected line is transformed as follows:

The raw line
 "xmlns:st=3D"=01" ="
is tranformed into
 "xmlns:st="(SOH)"

The RAW line content is from the Raw Message viewer in SmarterMail. I am not sure if the extra (=") at the EOL is a artifact of that viewer or something that is optimized away in your product.
Jason Farrar (Admin)

From: Oneida, NY USA
Posts: 223
Member Since: 07/24/07

Extra Support Options
Custom Application Development

posted May 5, 2009 10:57 AM

This is happening because the email message has a quoted-printable header attached to it and it's converting "=01" to it's non quoted-printable equivalent.

So a couple of questions, is the "=01" supposed to be "=01"? If so, then whatever is sending the E-mail is not encoding it as quoted-printable correctly because it should be "=3D01" if it were.

If you want to save the email "as-is" all you need to do is call the ToString method of the message stream, this should re-encode to quoted-printable and then you can store it exactly as it was received.
Reply | PowerTCP Mail for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX