Is there a way of creating an RDOMail
instance for a MailItem
corresponding to an Outlook message opened from a .msg
file?
My usual approach is to get the CurrentItem
from the Inspector
, cast it to MailItem
, retrieve its EntryID
and StoreID
values, and finally load it from an RDOSession
through the GetMessageFromID
method.
However, in the case of messages opened from a .msg
, the EntryID
property returns null
. Is there another way around this? I assume I could use the GetMessageFromMsgFile
method instead, but how do I retrieve the full path of the message from the MailItem
?
P.S. The solution should ideally work with the Outlook 2003 object model.