Outlook .msg attachment file info needed

  • Thread starter Thread starter nycboy
  • Start date Start date
N

nycboy

I want to expand a .msg file into files --- save each file and the
hierarchy contained in a MSG attachment. Any one can provide me related
information for doing it?

Thanks!
 
MSG file is a structured OLE storage file, but its format is not documented.
What exactly are you trying to do?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
You want to split an e-mail saved as an .msg file into multiple files?
Sorry, I don't understand. Also, only folders are hierarchical. Could you
please clarify what it is that you are trying to accomplish?
 
Sorry, let me explain it a little more. As I understand
that a MSG file can recursively contain more MSG files,
and each of the MSG file can also contain regular files.
I want to save each of the MSG and regular file into file
system with the same ¡°hierarchy¡± as they had in the MSG
file. For example, if file A.MSG contains file B.MSG, and
B.MSG contains file C, then I want all the files to be
saved as

File: A.MSG

DIR: A.MSG
|----- File B.MSG
|
|----- DIR: B.MSG
|
|-------- File: C

Thanks!
 
Outlook object model does not allow to access to the embedded message
attachments. You can either use CDO (see Attachment.Source property),
Extended MAPI (open PR_ATTACH_DATA_OBJ from IAttach as IMessage) or
Redemption (url below, see Attachment.EmbeddedMsg property).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top