Re: How long do long term ENTRYIDs last?
From: Dmitry Streblechenko \(MVP\) (dmitry_at_dimastr.com)
Date: 09/13/04
- Next message: Dmitry Streblechenko \(MVP\): "Re: 'To Recipient' field blank when sending mail via MAPI"
- Previous message: Jack Will: "Performance of IMAPITable::SortTable()"
- In reply to: Jack Will: "How long do long term ENTRYIDs last?"
- Next in thread: Rhett Gong [MSFT]: "RE: How long do long term ENTRYIDs last?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 13 Sep 2004 11:36:28 -0700
If nothing happens to the server, mailbox, parent folder and the message,
the long term entry id will be valid indefinitely.
The entry id can however embed flags that tell the provider how the message
was retrieved, e.g. if you connect to somebody's else mailbox, the entry id
may be different from the one seen by the mailbox owner.
In the Exchange world, the unique id is PR_SOURCE_KEY. Given the values of
PR_SOURCE_KEY for the message and its parent folder, you can always
construct the entry id using IExchangeManageStore::EntryIDFromSourceKey.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Jack Will" <lostupdate@hotmail.com> wrote in message
news:%23czQxKbmEHA.712@TK2MSFTNGP09.phx.gbl...
> I have a program which links to MAPI messages (email, contacts, tasks,
etc.
> from both Exchange and PST providers) and I need a way to open a specific
> message long after the link was created and possibly from a different
> computer. At first glance it appears that long term ENTRYIDs are just what
I
> need. However, I found this little tidbit in the documentation:
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/_mapi1book_entry_identifiers.asp
>
> "A long-term entry identifier is assigned by a service provider to an
object
> when an object requires an identifier with a prolonged lifespan. Long-term
> entry identifiers are always valid for weeks or months and can be valid on
> other workstations, depending on the provider. The long-term identifiers
> created by address book providers for custom recipients are universally
> valid."
>
> Weeks or months!? Is it possible for long term ENTRYIDs to go stale after
> weeks or months when using the Exchange and PST providers? If so, is there
> another identifier for a message which has the same lifetime as the
message
> it identifies?
>
> Thanks,
> Jack
>
>
- Next message: Dmitry Streblechenko \(MVP\): "Re: 'To Recipient' field blank when sending mail via MAPI"
- Previous message: Jack Will: "Performance of IMAPITable::SortTable()"
- In reply to: Jack Will: "How long do long term ENTRYIDs last?"
- Next in thread: Rhett Gong [MSFT]: "RE: How long do long term ENTRYIDs last?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|