Connecting to my own inbox and I see lots of messages, why does this return 0 messages? Is there another setting that I am missing?
ExchangeWebServiceClient client = new ExchangeWebServiceClient(“http://exhancge-ws/ews/Exchange.asmx”, “user”, “password”,“domain”);
ExchangeFolderInfoCollection folders = client.ListSubFolders(client.GetMailboxInfo().InboxUri);
// Call ListMessages method to list messages info from Inbox
ExchangeMessageInfoCollection msgCollection = client.ListMessages(client.GetMailboxInfo().InboxUri);
Thanks,