Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET POP3

 AfterLogic Forum : MailBee.NET POP3
Subject Topic: E-mail download loses part of body text Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
david@pfl
Newbie
Newbie


Joined: 12 November 2010
Location: United States
Online Status: Offline
Posts: 7
Posted: 12 November 2010 at 10:57am | IP Logged Quote david@pfl

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 View david@pfl's Profile Search for other posts by david@pfl
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6040
Posted: 13 November 2010 at 12:25am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide