Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

[E2007] [EWSMA] [C#] [Windows]: How can I retrieve all mail sent via this Exchange server (during a time period)

$
0
0

Hi there,

I'm quite new to Exchange and I'm not sure how to do this.

I've been looking at both push and pull mechanisms. 

The query is conceptually simple. I can do it for one user, I think:

            var filter = new SearchFilter.IsGreaterThanOrEqualTo(ItemSchema.DateTimeSent, after);
            var folder = Folder.Bind(exchange, WellKnownFolderName.SentItems);

            var results = folder.FindItems(filter, new ItemView(1000));

....but I'm not sure how to it for all users.

Many thanks!


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>