Developing against Outlook (C# app), will get only locally cached emails or all on server?

Frequent Contributor

I need to develop a script or C# app which connects to Outlook (Microsoft.Office.Outlook.Interop) to loop through a folder and it's subfolders to get info from emails. Will it get only the locally available emails (cached in the .ost) or will it get all emails from the server.


The mailbox is a shared mailbox of about 11 GB. How do I get all emails local (change the caching from last year to all?)


I guess I could also develop against the Exchange server, but do I have the same options there (e.g. pick folder to get to a selected subfolder to start in)?


Any other suggestions? I just need to develop something for a onetime extract of info from emails.

0 Replies