Hi, Which API do I use to import messages (MSG) into a PST ? I have LPMESSAGE object which I open using OpenIMsgOnIStg() and the IMsgStore object returned from OpenMsgStore() call. How do I import the message to the message store? Thanks a lot. Lee Message sent by exchangeVA from mombu the microsoft forum http://www.mombu.com/microsoft/ ------------------------------------------------------------------------ exchangeVA's Profile: http://www.mombu.com/microsoft/member.php?u=3837 View this thread: http://www.mombu.com/microsoft/Exchange-Server-Development/t-Import-MSG-to-PST-using-MAPI-1168543.html
In a nutshell, the API you want is CopyTo(). That will copy the properties from the MSG into a message created in the PST. I call CopyTo() with a reference to IID_IMessage, one to the destination message, and NULL or 0 for all other arguments. To create the message in the PST, you open the relevant folder and then call CreateMessage(). Please ask again if you need more details. Pete Maclean "exchangeVA" wrote in message news:exchangeVA.30dqdi@no-mx.forums.orquideologia-no-mx.com... > > Hi, > > Which API do I use to import messages (MSG) into a PST ? > I have LPMESSAGE object which I open using OpenIMsgOnIStg() and the > IMsgStore object returned from OpenMsgStore() call. How do I import the > message to the message store? > > Thanks a lot. > Lee > > > Message sent by exchangeVA from mombu the microsoft forum > http://www.mombu.com/microsoft/ > > ------------------------------------------------------------------------ > exchangeVA's Profile: http://www.mombu.com/microsoft/member.php?u=3837 > View this thread: > http://www.mombu.com/microsoft/Exchange-Server-Development/t-Import-MSG-to-PST-using-MAPI-1168543.html >