views:

68

answers:

1

Hi,

Is there a way to tell if the current inspector window, in Outlook 2007, is a Read window, or a Compose window?

I know we can capture events, and set flags on it, but I dont want to capture New/Reply/Forward events. Is there a way to tell this from the Inspector object? Any property? Any MAPI property?

A pointer in the right direction will be appreciated.

Regards,

+1  A: 

Probally the easiest way is to see if the Inspectors CurrentItem is Sent or not

 Outlook.MailItem currentMail = Inspector.CurrentItem as Outlook.MailItem;

        if (currentMail != null)
        {
            if (currentMail.Sent)
            {
                //Read Mode

            }
            else
            { 
                // Compose
            }

        }
76mel
Wow. Thats pretty neat. Thanx.
shaibee