2.2.4.2 Message EntryID Structure

In the context of an EntryID, a Message EntryID structure, as specified in section 2.2.1.2, differs from the structure in the context of a ROP. The ReplicaId field, as specified in section 2.2.1.2, is mapped to a MessageDatabaseGuid field, and the whole ID is prefixed with flags and a provider UID field. In addition, the Folder ID structure, as specified in section 2.2.1.1, of the folder in which the message resides is included.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Flags

ProviderUID

...

...

...

MessageType

FolderDatabaseGuid

...

...

...

...

FolderGlobalCounter

...

Pad

MessageDatabaseGuid

...

...

...

...

MessageGlobalCounter

...

Pad

Flags (4 bytes): This value MUST be set to 0x00000000. Bits in this field indicate under what circumstances a short-term EntryID is valid. However, in any EntryID stored in a property value, these 4 bytes MUST be zero, indicating a long-term EntryID.

ProviderUID (16 bytes): The value of this field is determined by where the folder is located. For a folder in a private mailbox, this value MUST be set to the value of the MailboxGuid field from the RopLogon ROP response buffer ([MS-OXCROPS] section 2.2.3.1.2). For a folder in the public message store, this value MUST be set to %x1A.44.73.90.AA.66.11.CD.9B.C8.00.AA.00.2F.C4.5A.

MessageType (2 bytes): One of several Store object types specified in the table in section 2.2.4.

FolderDatabaseGuid (16 bytes): A GUID associated with the Store object of the folder in which the message resides and corresponding to the ReplicaId field in the folder ID structure, as specified in section 2.2.1.1.

FolderGlobalCounter (6 bytes): An unsigned integer identifying the folder in which the message resides.

Pad (2 bytes): This value MUST be set to zero.

MessageDatabaseGuid (16 bytes): A GUID associated with the Store object of the message and corresponding to the ReplicaId field of the Message ID structure, as specified in section 2.2.1.2.

MessageGlobalCounter (6 bytes): An unsigned integer identifying the message.

Pad (2 bytes): This value MUST be set to zero.