There's no perfect solution. The EntryID is unique but changes. The SearchKey doesn't change but isn't guaranteed to be unique as it's copied, too, if you copy the item. This also applies to any ID you'd create yourself.
I'd probably do some combination of sent and received values, maybe in combination with some calculation of the sender's name and subject. This would all but insure unique codes except when the message is copied.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.