I have a Microsoft Outlook msg file which has an embedded msg file. I can get the attachment, save it as a file, but I cannot access it as a msg object.
I am using C, I cannot use C++ or C# or any other language.
To get the size of the attachment, I read the PR_ATTACH_SIZE property of the attachment, but the size I get is smaller than the size of the file when I save the attachment.
I tried to use PR_ATTACH_DATA_OBJ, PR_ATTACH_DATA_BIN and MAPIOBJECT in order to get the attached embedded msg, but all these functions fail.
How do I get the attached msg as a proper msg?
Call
IAttach::OpenProperty(PR_ATTACH_DATA_OBJ, IID_IMessage, ...)to open an embedded message attachment.