VSTO标识共享vs用户邮箱

发布于 2025-02-08 14:04:54 字数 2177 浏览 4 评论 0 原文

在VSTO加载项中,我正在尝试检索邮箱的类型,用户或资源。 我阅读了一些与问题有关的有趣帖子,并尝试查看OlexchangestoreType或GetConversation或MailboxType,但没有成功。 我从@dmitrystreblechenko看到了解决方案(3),但我希望在可能的情况下不要使用EWS。 看来我要寻找的价值是 msexchrecipienttypedpededetsetails 。 任何帮助将不胜感激。

相关文章

  1. ews获取邮箱类型(user/resource/resource/sharone)

  2. mailitem.getConversation()

  3. //stackoverflow.com/questions/69785831/in-outlook-addin-how-do-i-i-determine-if-an-emails-sender-sender-sender-is-a-shared-mailbox-em?rq = 1"> in Outlook Addin ,我如何确定电子邮件的发件人是否是共享邮箱电子邮件地址?

  4. https://www.codeproject.com/questions/questions/1088741/how-to-to-list-to-list-list-list-subfolders-ing-subfolders-in--- inbox-folder-in-in-e

In a VSTO add-in, I am trying to retrieve if the type of the mailbox is shared, user or resource.
I read some interesting posts related to the question and try to look at the OlExchangeStoreType or GetConversation or MailboxType but did not succeed.
I have seen the solution (3) from @DmitryStreblechenko but I would prefer to not use EWS if possible.
It seems that the value that I am looking for is the msExchRecipientTypeDetails.
Any help would be highly appreciated.

Relevant articles

  1. EWS Get mailbox type (user/resource/shared)

  2. MailItem.GetConversation() on shared mailbox

  3. In Outlook Addin, how do I determine if an email's Sender is a shared mailbox email address?

  4. https://www.codeproject.com/Questions/1088741/How-to-list-subfolders-in-inbox-folder-in-shared-e

  5. https://learn.microsoft.com/en-us/answers/questions/612248/in-outlook-addin-how-do-i-determine-that-an-email.html

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

昵称有卵用 2025-02-15 14:04:54

首先,VSTO并没有为此提供任何东西。

其次,Outlook对象模型没有区分共享/本地商店。因此,您将在OOM中找不到任何属性或方法。最好的办法是使用 store。 ExchangestoreType 属性返回 olexchangeStype 指示交换商店类型的枚举。

由您决定哪种方式/解决方法是使用上面共享的列表。

First of all, VSTO doesn't provide anything for that.

Second, the Outlook object model doesn't differentiate shared/local stores. So, you will not find any property or method for that in the OOM. The best what you could do is to use the Store.ExchangeStoreType property which returns a constant in the OlExchangeStoreType enumeration that indicates the type of an Exchange store.

It is up to you which way/workaround is to use form the list shared above.

野稚 2025-02-15 14:04:54

您无需使用EWS-尝试读取 namespace.autodiscoverxml 属性以检查共享邮箱及其类型是否存在 - 您可以在

查找 externativemailbox \ type 节点 - 您可以具有“存档”,“委托”,“ TeamMailbox”。

You don't need to use EWS - try to read Namespace.AutoDiscoverXml property to check if the shared mailbox and its type are there - you can see it in OutlookSpy (I am its author): click Namespace button, select AutoDiscoverXml property.

Look for the AlternativeMailbox\Type nodes - you can have "Archive", "Delegate", "TeamMailbox".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文