How to use WebDav to match dav:href to Outolook Interop href value

安稳与你 提交于 2019-12-01 12:12:54

This is quite long winded, but I have yet to find a better way of doing this:

The Outlook.MailItem.EntryID contains 4 Guids, although I am not sure what they all map to. The last guid contains the information you are after.

00000000E6053DD369FAB340B6B8C4D77A0
B37D30700173A23D2AA06A3488E75E759DD
1ACBBB00000A6F78CC00007B9F3D877B316
4499DE695FBB7FCDE5F00000 EBD83B9 0000

The bold part is the Messages ID that we can use (Of all the messages in my inbox, only these 7 digits were different between their entry IDs).

Next, modify your webDAV query to bring back the DAV:permanenturl property. This will look like the following:

https://SERVER_NAME/exchange/MAILBOX@DOMAIN>COM/-FlatUrlSpace-/173a23d2aa06a3488e75e759dd1acbbb-a6f78cc/7b9f3d877b3164499de695fbb7fcde5f-ebd83b9

So all you need to do for matching is to do a webDAV query for all the items in the specified mailbox, loop through comparing the PermanentURL with part of the EntryID to find your match.

I would be happier if there was an EntryID on the webDAV, but there does not seem to be a directly accessible one.

When I wanted to figure out how to send WebDav to Exchange 2003, I fired up Fiddler2 and looked at the messages Outlook Web Access was sending. You need Fiddler2 if you want to unpack the https responses.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!