Fetching all mails in Inbox from Exchange Web Services Managed API and storing them as a .eml files
I want to fetch all mails in the Inbox folder using EWS Managed API and store them as .eml . The problem is in fetching (1) all mails with (2) all headers (like from, to, subject) (I am keeping information of those values of from , to and other properties somewhere else, so I need them too) and (3)byte[] EmailMessage.MimeContent.Content . Actually I am lacking understanding of Microsoft.Exchange.WebServices.Data.ItemView , Microsoft.Exchange.WebServices.Data.BasePropertySet and Microsoft.Exchange.WebServices.Data.ItemSchema thats why I am finding it difficult. My primary code is: When I create