Derek Hart

I read that if just using standalone Outlook that the EntryID may change if
the user moves an email to another folder. So how do we have a unique key on
an email?

Ken Slovak - [MVP - Outlook]

Whether or not EntryID changes when an item is moved to another folder or
deleted to Deleted Items depends on the MAPI store provider. As it happens,
in a PST store (standalone) the EntryID does not change when an item is
moved within that store. It does change in the case of an Exchange mailbox.

At the MAPI level (or using a lower level API such as Redemption), you can
grab the PR_SEARCH_KEY (0x300B0102 or
"http://schemas.microsoft.com/mapi/proptag/0x300B0102") property to get a
more permanent ID in the case of an Exchange mailbox.

If you are using Outlook 2007 you can use PropertyAccessor to grab that
property using the DASL string property tag I provided.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question