I write a small application, which should automatically process the emails from a public folder. For each email, we want to save some metadata, in a database.
I wanted to use the ItemID to make the link between this metadata and a specific email, and I have just discovered that this ItemId is not constant. For example, if the email is moved from a public folder to another, it will receive another ItemId. That means, that the link between the email and the associated metadata is lost.
So, the problem is, how can I make the link between the metadata and the specific email?