OfficeDev / ews-java-api

A java client library to access Exchange web services. The API works against Office 365 Exchange Online as well as on premises Exchange.
MIT License
870 stars 560 forks source link

UniqueId is repeated #769

Open swk-lb opened 1 year ago

swk-lb commented 1 year ago

Hi,

I am using version 2.0 and java 8.

I work on emails from the inbox. I store the uniqueIds of mails in the database. The inbox is repeatedly queried and mails that are not yet stored in the database with their uniqueId are getting stored in the database. Today I received a mail with a uniqueId that was already stored in the database. That uniqueId belonged to a mail that was received a week ago.

I this behaviour intended? I was not aware that uniqueIds can occur more than one time.

Thanks for clarification, Lukas

pkropachev commented 1 year ago

What is field (how it's extracted) you use as unique identifier of message?

swk-lb commented 1 year ago

item.getId().getUniqueId()