Is there such thing as Outlook Message Delimiter?

230 views Asked by At

I have one mailitem that contains lots of messages exchanged (a message with a large historic, if you will).

Within the Msg.Body ,I need to know where a message begins and where it ends. I have been using From: but it is not accurate.

Is there a method to split one mail body into an array containing one message per item ?

Thanks.

1

There are 1 answers

0
Eugene Astafiev On

No, you need parse the message body text in the code. There is no explicit indicators.

The Outlook object model provides three main ways for working with item bodies:

  1. Body.
  2. HTMLBody.
  3. The Word editor. The WordEditor property of the Inspector class returns an instance of the Word Document which represents the message body.

See Chapter 17: Working with Item Bodies for more information.