Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Wed, 26 Apr 2006 04:01:01 -0700,    group: microsoft.public.exchange2000.development        back       


How to get the full length Outlook EntryID?   
This simple function "almost" get's Outlook EntryID value for at mail item: 

--- 
Octenttohex(rs.Fields("http://schemas.microsoft.com/mapi/proptag/0x0FFF0102") 

Function Octenttohex(OctenArry As Variant) As String 
ReDim aOUt(Len(OctenArry) - 1) 
For i = 1 To Len(OctenArry) '+ 1 
If Len(Hex(AscB(MidB(OctenArry, i, 1)))) = 1 Then 
aOUt(i - 1) = "0" & Hex(AscB(MidB(OctenArry, i, 1))) 
Else 
aOUt(i - 1) = Hex(AscB(MidB(OctenArry, i, 1))) 
End If 
Next 
Octenttohex = Join(aOUt, "") 
End Function 
--- 

But - only the first half of the ID. 

As you will see from the example below I can come very close to combining 
EntryID and FolderID keys, only missing the last 8 characters ("57420000"): 

Outlook EntryID: 
00000000D04D936A971B9949B29C546E1BF88923070069265AC77A48AF4EAD3161FA67594F89000000005315000069265AC77A48AF4EAD3161FA67594F890000000057420000 

The retrieved EntryID from the MAPI property: 
00000000D04D936A971B9949B29C546E1BF88923070069265AC77A48AF4EAD3161FA67 

These strings are taken from the FolderID on the mail item, and piece by 
piece they match a portion of the EntryID: 
594F890000000053150000 
69265AC77A48AF4EAD3161FA67 
594F8900000000 

Folder ID på mailen: 
00000000D04D936A971B9949B29C546E1BF88923010069265AC77A48AF4EAD3161FA67594F890000000053150000 


As you can see, I can pick out different strings from the Folder ID and 
match them with pieces in the EntryID string - BUT not the last 8 characters. 

How can the exact EntryID be retrieved or calculated???
date: Wed, 26 Apr 2006 04:01:01 -0700   author:   Claus Lysholm

Re: How to get the full length Outlook EntryID?   
Try to use StoreID
As i know full EntryID is message entryID, folder EntryID and storage 
EntryID



"Claus Lysholm"  wrote in message 
news:87E1F204-0E31-4E38-8E14-21DEA48FDCDE@microsoft.com...
> This simple function "almost" get's Outlook EntryID value for at mail 
> item:
>
> --- 
> Octenttohex(rs.Fields("http://schemas.microsoft.com/mapi/proptag/0x0FFF0102")
>
> Function Octenttohex(OctenArry As Variant) As String
> ReDim aOUt(Len(OctenArry) - 1)
> For i = 1 To Len(OctenArry) '+ 1
> If Len(Hex(AscB(MidB(OctenArry, i, 1)))) = 1 Then
> aOUt(i - 1) = "0" & Hex(AscB(MidB(OctenArry, i, 1)))
> Else
> aOUt(i - 1) = Hex(AscB(MidB(OctenArry, i, 1)))
> End If
> Next
> Octenttohex = Join(aOUt, "")
> End Function
> --- 
>
> But - only the first half of the ID.
>
> As you will see from the example below I can come very close to combining
> EntryID and FolderID keys, only missing the last 8 characters 
> ("57420000"):
>
> Outlook EntryID:
> 00000000D04D936A971B9949B29C546E1BF88923070069265AC77A48AF4EAD3161FA67594F89000000005315000069265AC77A48AF4EAD3161FA67594F890000000057420000
>
> The retrieved EntryID from the MAPI property:
> 00000000D04D936A971B9949B29C546E1BF88923070069265AC77A48AF4EAD3161FA67
>
> These strings are taken from the FolderID on the mail item, and piece by
> piece they match a portion of the EntryID:
> 594F890000000053150000
> 69265AC77A48AF4EAD3161FA67
> 594F8900000000
>
> Folder ID pa mailen:
> 00000000D04D936A971B9949B29C546E1BF88923010069265AC77A48AF4EAD3161FA67594F890000000053150000
>
>
> As you can see, I can pick out different strings from the Folder ID and
> match them with pieces in the EntryID string - BUT not the last 8 
> characters.
>
> How can the exact EntryID be retrieved or calculated???
date: Thu, 27 Apr 2006 14:34:05 +0400   author:   news.microsoft.com

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us