IMessage->SaveMessage does not reflect Message Properties immediat

  • Thread starter Thread starter Nikhil Sharma
  • Start date Start date
N

Nikhil Sharma

Hi,
I am facing one issue with Outlook 2003 Addin (develeoped by VSTO).
As everybody knows that Outlook object model shows security Pop-up, when we
try to access some specific properties like body, recipients ... etc of any
Message Item. So i am using MAPI (managed C++ code) to access (read/write)
these properties to supress security Popup (i don't know, whether there is
any other way to supress security Popup? if yen then please suggest).

Now when i try to set these properties using MAPI
"IMessage->SaveMessage(KEEP_OPEN_READWRITE) or
IMessage->SaveMessage(FORCE_SAVE)", these properties are not getting
reflected immediately, To see the changes in these properties i need to close
my outlook and then reopen it.
I dont know what is the solution of this problem.

Thanks and Best Regards,
Nikhil Sharma
 
Hi Ken,
I have written half code in .NET and half code in managed C++, and i am
passing MAPIOBJECT from .NET code to C++ code and then doing all operation on
that mapi object.


But after IMessage->SaveChanges(KEEP_OPEN_READWRITE), changes are not
reflected immidiately, it takes time ! As in CDO there is one method
IMessage->Fields->Update, which updated the message immediately, is there
anything available in MAPI to do the same.

Thanks and Best Regards,
Nikhil Sharma
 
Correction :

typo : IMessage->SaveChanges(KEEP_OPEN_READWRITE) - wrong

IMessage->SaveChanges(KEEP_OPEN_READWRITE) - right
 
As I mentioned before, managed code is not supported for Extended MAPI.

For MAPI questions you really are best off posting in
microsoft.public.win32.programmer.messaging. That's where the Extended MAPI
experts answer questions.
 
Back
Top