exchangewebservices - EWS C# property LastModifiedTime time not updated after read or unread message -


i doing search mails using specific date. use or filter parameters datetimecreated, datetimereceived , lastmodifiedtime. search specific property.

the search query working messages received or modified (i.e. moved other folder) after specific date.

i noticed messages created before specific date , changed read or unread after specific date not being retrieved. expected messages changed read or unread had lastmodifiedtime property changed. below code using:

    list<searchfilter> searchfilterorcolletion = new list<searchfilter>();     searchfilterorcolletion.add(new searchfilter.isgreaterthanorequalto(itemschema.datetimecreated, utcfromdate));                             searchfilterorcolletion.add(new searchfilter.isgreaterthanorequalto(itemschema.datetimereceived, utcfromdate));                             searchfilterorcolletion.add(new searchfilter.isgreaterthanorequalto(itemschema.lastmodifiedtime, utcfromdate));                             searchfilter searchorfilter = new searchfilter.searchfiltercollection(logicaloperator.or, searchfilterorcolletion.toarray());     list<searchfilter> searchandfilter = new list<searchfilter>();     searchandfilter.add(searchorfilter);     searchandfilter.add(searchfilterxprproperty);     searchfilter.searchfiltercollection finalsearchfilter = new searchfilter.searchfiltercollection(logicaloperator.and, searchandfilter.toarray()); 

is there way time message set read or unread ? i.e:

1 - message received 3:30 pm 2 - message b received 4:00 pm 3 - message read 4:10  pm using search time 3:50pm returning message b. expecting message found (due lastmodifiedtime) property. 

thank in advance,

its not bug updating read status of message doesn't change last modified time (this has been case in exchange), 1 exception when reply or forward message modify pr_last_verb_executed property update last modified time.

if want track when message read need use http://blogs.technet.com/b/exchange/archive/2010/01/13/exchange-2010-delivery-reports.aspx or can use ews notification , subscribe onread notification

cheers glen


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -