Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Mon, 19 Nov 2007 17:00:19 -0300,    group: microsoft.public.exchange.development        back       


Import MSG to PST using MAPI   
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
date: Mon, 19 Nov 2007 17:00:19 -0300   author:   exchangeVA

Re: Import MSG to PST using MAPI   
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
>
date: Wed, 21 Nov 2007 18:12:52 -0800   author:   Pete Maclean

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us