Author |
|
david@pfl Newbie
Joined: 12 November 2010 Location: United States
Online Status: Offline Posts: 7
|
Posted: 12 November 2010 at 10:57am | IP Logged
|
|
|
We receive some e-mails that have different parts of the body text with encoded text in the middle. For example, the raw message data looks like this:
User-typed text part 1.
--=_cp-mail01.itfreedom.com-13 728-1258556277-0001-2
Content-Type: image/tiff; x-unix-mode=0666; name="pastedGraphic.tiff"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename=pastedGraphic.tiff
X-WatchGuard-AntiVirus: scanned 'pastedGraphic.tiff'. clean action=allow
[large chunk of encoded data here]
--=_cp-mail01.itfreedom.com-13 728-1258556277-0001-2
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
X-WatchGuard-AntiVirus: part scanned. clean action=allow
User-typed text part 2.
Outlook Express displays it like this:
User-typed text part 1.
<P><HR></P>
User-typed text part 2.
But when I retrieve the body text, I don't see anything from part 2. Part 2 usually seems to be a duplicate of part 1, or in some cases is the part of the e-mail that is quoted from a previous e-mail in a reply. I have tested a few other e-mail parsers, and they also do not return part 2. Can anyone shed some light on this for me?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 13 November 2010 at 12:25am | IP Logged
|
|
|
If a message contains multiple plaintext parts, you can only get the first one with BodyPlainText property of MailMessage object. However, you can iterate through all the text body parts, the example is found here.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|