Redemption - GetItemFromMsgFile sample in C++

A

Anthony Yio

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

thank you.
 
D

Dmitry Streblechenko \(MVP\)

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
 
S

Semut

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.
 
D

Dmitry Streblechenko \(MVP\)

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
 
S

Semut

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top