Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EWS: How to update IsRead property of an EmailMessage

how to update IsRead property of an EmailMessage using EWS or other method?

Just setting mail.IsRead=true does not seem to persist.

like image 725
Steven Zack Avatar asked Jul 18 '11 20:07

Steven Zack


1 Answers

OK,no one answer my question after I post it for nearly 1 hour which is quite unusual, but I just found a solution. Hope this will help others who get confused on this issue.

mail.IsRead=true;
mail.Update(ConflictResolutionMode.AutoResolve);

That's it. The key is you have to update the item or EmailMessage after setting IsRead property.

like image 158
Steven Zack Avatar answered Oct 20 '22 20:10

Steven Zack