Redemption - GetItemFromMsgFile sample in C++

  • Thread starter Thread starter Anthony Yio
  • Start date Start date
A

Anthony Yio

Hello, are there any samples on the utilizing function GetItemFromMsgFile in
C++?

thank you.
 
I don't have any. Something like the following (off the top of my head)
should work:

Redemption::MAPIUtils utils;
Redemption::MessageItem msg;
....
msg = utils->GetItemFromMsgFile ("c:\\test.msg", _variant_t(false));

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Nevermind, it is okay. But could you provide me the sample codes or link to
the VB codes for GetItemFromMsgFile routine. I need to get hold of the
sequence of functions call provided by Redemption to load the *.msg file,
determine it's type, and place it into a selected mailbox based on it's
type.


thank you.
 
1. Use GetItemFromMsgFile for get back IMessageItem
2. Determine where the message belongs to
3. Create a message in the target folder using Outlook Object Model or CDO
4. Create a Redemption SafeMailItem object and associate it with the newly
created object from # 3 by setting the SafeMailItem.Item property
5. Call SafeMailItem.Import(..., olMsg)
6. Save the message

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
thank you very much.


Dmitry Streblechenko (MVP) said:
1. Use GetItemFromMsgFile for get back IMessageItem
2. Determine where the message belongs to
3. Create a message in the target folder using Outlook Object Model or CDO
4. Create a Redemption SafeMailItem object and associate it with the newly
created object from # 3 by setting the SafeMailItem.Item property
5. Call SafeMailItem.Import(..., olMsg)
6. Save the message

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