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 6771765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:28:15+00:00 2026-05-26T15:28:15+00:00

Using the WEBDav libraries from Troy Wolf I am using the following query to

  • 0

Using the WEBDav libraries from Troy Wolf

I am using the following query to pull results from the Exchange Server

$search = <<<END
<?xml version="1.0"?><a:searchrequest xmlns:a="DAV:" xmlns:s="http://schemas.microsoft.com/exchange/security/">
<a:sql>SELECT "DAV:displayname",
"urn:schemas:httpmail:from",
"urn:schemas:httpmail:subject",
"urn:schemas:httpmail:textdescription",
"urn:schemas:httpmail:htmldescription",
"urn:schemas:httpmail:hasattachment",
"urn:schemas:httpmail:attachmentfilename",
"urn:schemas:httpmail:sender" FROM "$mailbox" WHERE "DAV:isfolder"=False AND "http://schemas.microsoft.com/exchange/outlookmessageclass"='IPM.NOTE'</a:sql>
</a:searchrequest>
END

This works however the return comes back as

array
  0 => 
    object(stdClass)[10]
      public '_attr' => 
        object(stdClass)[11]
      public 'A_STATUS' => 
        array
          0 => 
            object(stdClass)[12]
              public '_attr' => 
                object(stdClass)[13]
                  ...
              public '_text' => string 'HTTP/1.1 200 OK' (length=15)
      public 'A_PROP' => 
        array
          0 => 
            object(stdClass)[14]
              public '_attr' => 
                object(stdClass)[15]
                  ...
              public 'A_DISPLAYNAME' => 
                array
                  ...
              public 'D_FROM' => 
                array
                  ...
              public 'D_SUBJECT' => 
                array
                  ...
              public 'D_TEXTDESCRIPTION' => 
                array
                  ...
              public 'D_HTMLDESCRIPTION' => 
                array
                  ...
              public 'D_HASATTACHMENT' => 
                array
                  ...  
    1 => 
      object(stdClass)[28]
        public '_attr' => 
          object(stdClass)[29]
        public 'A_STATUS' => 
          array
            0 => 
            object(stdClass)[30]
              public '_attr' => 
                object(stdClass)[31]
                  ...
              public '_text' => string 'HTTP/1.1 404 Resource Not Found' (length=31)
        public 'A_PROP' => 
          array
            0 => 
              object(stdClass)[32]
                public '_attr' => 
                  object(stdClass)[33]
                    ...
                public 'D_ATTACHMENTFILENAME' => 
                  array
                    ...
                public 'D_SENDER' => 
                  array
                    ...

Whether a file is attached or not, D_ATTACHMENTFILENAME is returned with a 404. Any ideas why?

tl;dr – cannot retrieve list of attached files for emails through a webdav service.

  • 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-26T15:28:15+00:00Added an answer on May 26, 2026 at 3:28 pm

    You can’t get the filenames of the attachments using a Search request. Instead, filter on items which have the hasattachment set to 1. Foreach each of those elements, issue an X-MS-ENUMATTS request to get the attachment properties.

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

Sidebar

Related Questions

I've been trying to retrive attachment from message in Exchange 2003 server using WebDAV.
I am running a subversion server with access via http using webdav. I have
I have been using WebDAV in PHP directly using XML. I have managed to
I am trying to access the Exchange 2007 mail store programmatically using WebDAV. However,
I'm creating outlook appointments using webdav. I'm using following post body to create the
We have an iOS Application that connects to a WebDav server using the ASIHTTPRequest
A WebDAV library I'm using is issuing this request MKCOL /collection HTTP/1.1 To which
I have set up WebDAv server on my Debian linux and this is working
I have started writing my own WebDAV server class in .NET, and the first
I have deployed the WebDav server on Debian Linux and give appropriate permission. While

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.