Removing default folders

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have created an ATL C++ Outlook Add-in for 2003 and 2007. Within this
plug-in I have created a custom folder (separate PST) much like the personal
folder that hosts a web page. By default calling AddStoreEx from the
namespace the folder is created; but also child folders “inboxâ€, “Deleted
Items†and “Search Folders†are also created. Is there anyway to delete the
child folders? I tried removing them but the functionality fails.

Thanks for your help.
 
If all you want to do is display a folder home paage, why not do that using
a folder in one of the defauls store's folders?
Why do you need to create a PST file if you have no intention of ever
storing any messages there?
As for deleting folders, you can delete the Inbox and "Deleted Items"
folders using CDO 1.21, Extended MAPI or Redemption (OOM won't let you
delete any of the default folders), but "Search Folders" will stay - it is
displayed by Outlook for all stores that support search folders
(STORE_SEARCH_OK bit is set in the PR_STORE_SUPPORT_MASK property).

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

Basically our customer wants his own pst file for further upgrades.

BTW - can we do this through Outlook Spy?
 
Delete a folder? Sure, select the root folder in that PST store, click
IMAPIFolder button on the OutlookSpy toolbar, go to the GetHierarchyTable
tab, select the folder you want to delete, click Delete.

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