按发件人姓名获取 Outlook 邮件计数
我正在用 C# 开发 Outlook 2007 插件,我需要在其中计算特定发件人已发送的邮件数量?
例如,A 发送了 5 封邮件,B 发送了 10 封邮件,B 发送了 10 封邮件。 C 已发送 15 封邮件。我怎样才能得到每个成员的这个计数?
我也可以使用 Dictionary
编写自己的逻辑,但是当这个发件人列表变得很大时,这将是一个巨大的性能损失。 是否有任何预定义的属性?
提前致谢。
I am developing an Outlook 2007 Add-in in C#, where I need to count the number oif mails a particular sender has sent ?
For example, person A has sent 5 mails, person B has sent 10 mails & person C has sent 15 Mails. How can I get this count for every member ?
I can write this logic of my own as well using a Dictionary<String, Int32>
, but when this sender list becomes big, It will be a HUGE performance hit.
Is there any predefined property for this?
Thanks in Advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能不太可能,但您是否考虑过通过 WebDAV 直接与 Exchange 服务器对话?我之前使用过“WebDAV .NET for Exchange”,它充当 WebDAV 上的 .NET 包装器,因此您不需要了解 WebDAV 部分。试用版如果免费的话。
一个关键优点是您不需要使用与 Outlook 相同的凭据连接到 Exchange 服务器,因此您可以使用“管理员”帐户连接并查询其他人的邮箱,而无需向本地用户授予该权限。
这是该网站和教程的链接:
IndependentSoft WebDAV .NET for Exchange
This may be a long-shot, but have you thought about talking to the Exchange server directly via WebDAV? I've used the "WebDAV .NET for Exchange" before, it acts as a .NET wrapper over the WebDAV, so you don't need to understand the WebDAV part. The trial version if free.
A key advantage is that you don't need to connect to the exchange server using the same credentials as Outlook, so you could connect with an "admin" account and query other people's mailboxes without needing to grant that permission to the local user.
Here's a link to the site and the tutorials:
IndependentSoft WebDAV .NET for Exchange