Get the Outlook Mail Count by Sender Name
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 ca开发者_运维知识库n 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.
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
精彩评论