Import .msg to newly created message store

Import .msg to newly created message store

Post by VAI Le » Wed, 21 Nov 2007 07:00:06


Hi,

I have a new message store created with CreateMsgService("MSPST MS",...)

Now I need to import some messages in .msg format to the new PST. I have a
pointer to the IMessage object from the OpenIMsgOnIStg() call. How do I go
about importing it to the PST? I can't seem to find any API call on the
IMsgStore interface. If I use the IMessage->CopyTo method and specify the
IMsgStore as the destination then I've got an "Invalid parameters" exception.


Any help is much appreciated.
Thanks
Lee

url: http://www.yqcomputer.com/
 
 
 

Import .msg to newly created message store

Post by Stephen Gr » Wed, 21 Nov 2007 08:01:20

Get/create a folder, then create a message in the folder. Then CopyTo the
new message.

 
 
 

Import .msg to newly created message store

Post by VAI Le » Thu, 22 Nov 2007 02:36:22

That worked. Thanks so much for your advice.

url: http://www.yqcomputer.com/