views:

18

answers:

0

Hi,

I'm creating an addin for microsoft outlook. When I receive the Application.NewMailEx event, I try to read email's Body property. The problem I'm having is that until the user clicks on the email to read it, the Body property is null and the HTMLBody property of the MailItem is:

<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">
<HTML>
<HEAD>
<META NAME=\"Generator\" CONTENT=\"MS Exchange Server version 08.01.0240.003\">
<TITLE></TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
</BODY>
</HTML>"

The difficulty is how to recognize if an email just wasn't opened yet or the email actually has an empty body?

Is there a property that I could check to find if the email body was downloaded?

I do check MailItem.DownloadState if it equals to OlDownloadState.olHeaderOnly, but I get that the DownloadState is olFullItem.

Thank you a lot for your help, Regards, Gregor