Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 469597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:47:55+00:00 2026-05-12T23:47:55+00:00

I have previously used webdav to access the sent messages on an exchange 2003

  • 0

I have previously used webdav to access the sent messages on an exchange 2003 server based on the subject and time and this has worked.

I now need to implement another feature which means dragging a message from client outlook (not web access) on to a windows form then querying webdav on exchange to get all the information about this message.

I can get the messages href using the following code:

Dim msg As MAPI.Message = CType(session.GetMessage(mail.EntryID), MAPI.Message)
Dim id as string = CType(CType(msg.Fields(), MAPI.Fields).Item(&H6707001E), MAPI.Field).Value.ToString

However there are two issues;

1) The encoding on the URL is different between what I get from the dragged message and what is brought back from webdav (I can see these if I ask for all mail).

2) No matter how I format the query it never brings back results even if I copy the href from the list when I bring back all messages.

Here is a sample of a search request that fails (works if you remove the where clause):

    <?xml version="1.0" ?>
    <D:searchrequest xmlns:D="DAV:">
        <D:sql>SELECT "DAV:contentclass","DAV:href", "DAV:displayname","urn:schemas:httpmail:datereceived","urn:schemas:httpmail:subject" 
FROM "https://server/exchange/mailbox" WHERE "DAV:href"='/Inbox/email.EML'</D:sql>
    </D:searchrequest>

I have been using relative syntax as per this article but have tried many combinations.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:47:56+00:00Added an answer on May 12, 2026 at 11:47 pm

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have previously used datatable pagination and it worked as a charm. This time
I have previously used XML based configuration for my Spring app. Now, I want
Greetings I may have imagined this but does anyone know if Last.fm previously used
My project requires to set up symfony with Nginx server. I have previously used
I have previously used the following URL to access my tweets and embed them
I was learning Core Data and previously I have used SQLite in one of
I have used auto complete textbox previously. That auto complete works only when i
I have previously read Spolsky's article on character-encoding, as well as this from dive
I have previously used CakePHP's routing functionality with the greedy star, allowing all the
Can a LINQ expression replace all cases where regex would have previously been used?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.