none
How to set a normal folder as a special folder via MAPI? RRS feed

  • Question

  • Hi,

    Is there a way to set a normal folder, for example, MyOutbox as a special folder, such as Outbox folder? I read the document at https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/mapi-special-folders . Currently it seems I can set the receive folder via SetReceiveFolder. But I cannot find a way to set other special folders, such as Outbox folder, Deleted Items folder , etc.

    Tuesday, December 11, 2018 2:44 AM

All replies

  • Outbox - set PR_IPM_OUTBOX_ENTRYID on IMsgStore

    Deleted Items - set PR_IPM_WASTEBASKET_ENTRYID on IMsgStore.

    Take a look at various MAPI objects using OutlookSpy.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, December 11, 2018 5:15 AM
  • Hi, Dmitry,

    Thank you very much. Originally I thought PR_IPM_OUTBOX_ENTRYID is used to get the Outbox folder entry ID, not used for setting. I will have a try. Also I think after setting PR_IPM_OUTBOX_ENTRYID, I should also change the PR_VALID_FOLDER_MASK if the Outbox folder does not exist before setting. Is that correct? 

    Tuesday, December 11, 2018 9:47 AM
  • The default store would already have an Outbox, so PR_VALID_FOLDER_MASK would stay unchanged.

    Why exactly are you doing this?


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, December 11, 2018 1:39 PM