如何通过邮件获取原始收件箱的ID?

How to obtain the ID of the origin inbox by the mail item?

有没有办法通过邮件项获取(唯一的)收件箱 ID,也许是通过邮件项属性之一:

https://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mailitem_properties.aspx

我的 Outlook 2010 中有一封邮件已移至已删除邮件文件夹。现在我正在寻找它来自哪里的来源(我的私人收件箱或共享收件箱)。

当一个项目被移动到不同的文件夹时,它不会保留关于其先前父级的信息。 Foo 所有实用目的,它是一个全新的项目。

我想为您提供我的解决方案来解决这个问题。在这种情况下,您可以订阅删除文件夹的事件“BeforeItemMove" of folder and when event occured you need check a folder name. If folder name is "Delted Items" you can write information about your inbox (private or shared) in "UserProperties" of mail item. In addition to that you need subscribe to event "ItemAdd”。因此,您将收到有关收件箱的信息。