MAPIFolder any invisible property?

N

Neetu

Hello,

can we create a custom folder inside outlook which can be invisible to user?
We need this to store some mailitems for temporary store.

We are using VSTO + c# outlook 2007
 
D

Dmitry Streblechenko

Not using the Outlook Object Model - you can use CDO 1.21 / Extended MAPI
/Redemption to create a folder outside the IPM tree.
What exactly are you trying to do? Have you looked into using associted
(hidden) messages?

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

Neetu

hello Dmitry

since inside our addin we are removing folders created by us on some search
result using windows form. Requirement is, if there is any mail item inside
our custom folders then after creating new folder structure inside outlook
based on search result , I need to retreive those mail items back to custom
folder created. since if we remove parent folders , even if we have mailitems
collection we cannot move it back to any other folder.
we are planning to keep a invisible folder inside outlook so before removing
custom folders , we can move mail items to invisible folder and can move
back to newly created folders.
 
D

Dmitry Streblechenko

I see... OOM alone won't let you do that.
You can also keep in teh messages as standalone MSG files (MailItem.SaveAs),
if that is an option, but importing them back using OOM alone would be a
problem

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