What exactly do you mean by "there are no info about attachments"?.
What properties are you trying to access? What exactly do you get?
Fo IMessage created on top of an MSG file, a very limited set of properties
is exposed. You need to open the attachment and then read properties from
it.
Keep in mind that when you double click on an MSG file, Outlook creates a
temporary message in the default store and copies the MSG file, so you are
not looking at the MSG file data.
You can see exposed properties in OutlookSpy: click Misc | OpenIMsgOnIStg.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"MON205" wrote in message
...
Hello,
I'm trying to open a MSG file (saved on disk) and get the names ans sizes
of
attachments. GetAttachmentTable( ) returns S_OK but there are no info
about
attachments. Also if you opened the MSG file with Outlook, and see the
attachments properties using OutlookSpy, you will notice that main
attachments info are not found.
How can I get these info?
Thanks