Hi,
This is what we need to achieve. Using EWS c# to access exchange server.
Two links we have followed from MSDN.
- config account for impersonation. http://msdn.microsoft.com/en-us/library/exchange/bb204095(v=exchg.140).aspx
- View Custom extened properties by using ews api (basically, retrive email items)http://msdn.microsoft.com/en-us/library/exchange/dd633697(v=exchg.80).aspx
The problem is I can only access the mail message that are received after the impersonation. For example, lets say the impersonation is done at 8:00am. I can get all the mail messages that are received after 8:00am. And all the messages that were received before 8:00am cannot be retrived.
This is really weired. And now two sides are blaming each other. Our dev team think it is service team's fault, because we can retrive email after impersonation. And the service team blame us that there is something wrong with the ews code.
Could anyone tell me what's the problem and the solution to fix this?
Thank you.
Rui