AndroidDev
AndroidDev

Reputation: 691

Is there such thing as Outlook Message Delimiter?

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.

Upvotes: 2

Views: 237

Answers (1)

Eugene Astafiev
Eugene Astafiev

Reputation: 49435

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.

Upvotes: 1

Related Questions