如何在文件夹窗格中重新排序 Outlook PST mailbox/store?

How to reorder Outlook PST mailbox/store in folder pane?

我使用的是 Outlook 2016,我的默认 Exchange mailbox/store 下面列出了两个 PST 文件。在文件夹窗格中,我可以单击 PST mailbox/store 并将其拖动到其他 PST 和默认值 mailbox/store 上方。例如,如果这是我当前的文件夹窗格:

FirstName.LastName@mycompany.com    (Default Exchange mailbox/store)
Mail2019                            (PST #1)
Mail2020                            (PST #2)

我可以单击 Mail2020 并将其拖动到 Mail2019 上方,因此文件夹窗格如下所示:

FirstName.LastName@mycompany.com    (Default Exchange mailbox/store)
Mail2020                            (PST #2)
Mail2019                            (PST #1)

是否可以使用 VBA 对文件夹窗格中的 mailboxes/stores 重新排序,如果可以,如何进行?我搜索了 Outlook 对象模型属性、MAPI 属性,并使用 MFCMAPI 探索了 mailboxes/stores,但还没有找到任何似乎可以存储订单的东西。

谢谢。

商店订单列表存储在 0x04581102 多值二进制 属性 (PT_MV_BINARY) 中 IID_CAPONE_PROF 配置文件部分 - 您可以在 [=16] 中看到它=](我是它的作者):单击 OutlookSpy 功能区上的 IMAPISession 按钮,单击 OpenProfileSection,select "{00020D0A-0000-0000-C000-000000000046} IID_CAPONE_PROF",单击确定,向下滚动到 0x0458 属性.

请记住,属性 仅在用户明确重新排序商店列表时才会出现。否则,商店按字母顺序排序,默认商店(无论其名称如何)排在第一位(据我所知)。

如果使用 Redemption(我也是它的作者)是一个选项,则计划通过 RDOStore2.DisplayOrder [=25= 在下一版本的 Redemption (5.23) 中公开此功能] 和 RDOStores.GetOrder 列表。有兴趣的可以发邮件到redemption(at)dimastr(dot)com.