none
Regarding the IMsgStores associated with the IMapiSession RRS feed

  • Question

  • Hi ,

      I am trying the create advice sink for new mail notification & sent mail notification. I want to that only on MsgStore. But for few profiles I see they have extra MsgStores like "Archive Folders" & "Personal Folders".

    When I open IMapiSession, they have 3 MsgStores . "Personal Folders" "Archive Folders" & mailID@domain.com. I want to set the message store only on mailID@domain.com I can not hard code & compare for the Personal Folder or Archive Folders. It can be "Santhi's Folder".

    Is there any way to differentiate between the created MsgStores & default one. Are there any properties of IMsgStore I can rely on?

    Thanks

    Santhi

    Tuesday, September 24, 2013 3:19 PM

Answers

  • Do you mean you want the default store? Look for the row with PR_DEFAULT_STORE  = true in the IMAPITable returned by IMAPISession::GetMsgStoresTable.

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

    • Marked as answer by Santhi R Wednesday, September 25, 2013 8:15 PM
    Tuesday, September 24, 2013 4:17 PM
  • You can't read PR_DEFAULT_STORE  from ImsgStore. It is only available in the message stores table returned by IMAPISession::GetMsgStoresTable.

    Have a look at that table in OutlookSpy (click IMAPISession button on the OutlookSpy toolbar, look at the GetMsgStoresTable tab).


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

    • Marked as answer by Santhi R Wednesday, September 25, 2013 8:16 PM
    Wednesday, September 25, 2013 3:57 PM

All replies

  • Do you mean you want the default store? Look for the row with PR_DEFAULT_STORE  = true in the IMAPITable returned by IMAPISession::GetMsgStoresTable.

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

    • Marked as answer by Santhi R Wednesday, September 25, 2013 8:15 PM
    Tuesday, September 24, 2013 4:17 PM
  • Hi Dmitry,

     Thanks a lot for your reply.

    Can I know, from IMsgStore, if this is Default message store or not?

    Can I retrieve PR_DEFAULT_STORE for ImSgStore?

    Thanks

    Santhi

    Wednesday, September 25, 2013 3:43 PM
  • You can't read PR_DEFAULT_STORE  from ImsgStore. It is only available in the message stores table returned by IMAPISession::GetMsgStoresTable.

    Have a look at that table in OutlookSpy (click IMAPISession button on the OutlookSpy toolbar, look at the GetMsgStoresTable tab).


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

    • Marked as answer by Santhi R Wednesday, September 25, 2013 8:16 PM
    Wednesday, September 25, 2013 3:57 PM
  • Thanks a lot Dmitry. You replies helped me.

    Regards

    Santhi

    Wednesday, September 25, 2013 8:15 PM