X-MS-ENUMATTS Method

Topic Last Modified: 2006-06-13

The WebDAV X-MS-ENUMATTS Method is used to enumerate the attachments of an e-mail message.

The X-MS-ENUMATTS Method will return different properties on each e-mail message attachment, depending on how the message was sent. The following table lists the attachment properties returned for different messages.

List of properties returned for given messages

Property Tag Schema Property Sent from Outlook Sent from Outlook Web Access Sent from S/MIME Sent from S/MIME Signed

PR_URL_COMP_NAME_W

DAV:href

Y

Y

Y

Y

PR_DISPLAY_NAME_W

urn:schemas:contacts:cn

Y

Y

Y

Y

PR_ATTACH_EXTENSION_W

https://schemas.microsoft.com/mapi/proptag/x3703001F

Y

Y

N

N

PR_ATTACH_FILENAME_W

https://schemas.microsoft.com/mapi/proptag/x3704001F

Y

Y

Y

Y

PR_ATTACH_METHOD

https://schemas.microsoft.com/mapi/proptag/x37050003

Y

Y

Y

N

PR_ATTACH_LONG_FILENAME_W

urn:schemas:httpmail:attachmentfilename

Y

Y

Y

Y

PR_RENDERING_POSITION

https://schemas.microsoft.com/mapi/proptag/x370B0003

Y

Y

Y

N

PR_ATTACH_MIME_TAG_W

https://schemas.microsoft.com/mapi/proptag/x370E001F

N

Y

Y

Y

PR_ATTACH_CONTENT_LOCATION_W

https://schemas.microsoft.com/mapi/proptag/x3713001F

N

N

N

Y

PR_ATTACH_FLAGS

https://schemas.microsoft.com/mapi/proptag/x37140003

Y

N

N

N

PR_ATTACH_DISPOSTION_W

https://schemas.microsoft.com/mapi/proptag/x3716001F

N

N

Y

Y

PR_ATTACH_SIZE

https://schemas.microsoft.com/mapi/proptag/x0E210003

Y

Y

Y

N

PR_ATTACH_NUM

https://schemas.microsoft.com/mapi/proptag/x0E210003

Y

Y

Y

N

Note

For more information, see Authentication and Security Using WebDAV.

The list of WebDAV Protocol Status Codes in the following table is not comprehensive. For information about 500-level status codes, see WebDAV Status Codes: 500s.

Status Codes

Status Code Meaning

207 (Multi-Status)

Multiple response codes to be found in XML body.

401 (Access Denied)

The resource requires authorization or authorization was refused.

404 (Resource Not Found)

The resource could not be found.

Example

The following example illustrates a WebDAV X-MS-ENUMATTS Method request on an e-mail message sent by Microsoft® Outlook® with an attachment named Test1.txt.

The following example illustrates a WebDAV X-MS-ENUMATTS Method request on an e-mail message sent by Outlook Web Access with an attachment named Test1.txt.

Request

X-MS-ENUMATTS /exchange/useralias/inbox/OutlookMsg.eml HTTP/1.1
Host: www.example.com  

Response

HTTP/1.1 207 Multi-Status

<?xml version="1.0"?>
<a:multistatus xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
               xmlns:f="https://schemas.microsoft.com/mapi/"
               xmlns:e="urn:schemas:httpmail:"
               xmlns:c="xml:"
               xmlns:d="https://schemas.microsoft.com/mapi/proptag/"
               xmlns:g="https://schemas.microsoft.com/exchange/"
               xmlns:j="urn:schemas-microsoft-com:office:office"
               xmlns:h="https://schemas.microsoft.com/repl/"
               xmlns:i="urn:schemas:contacts:"
               xmlns:a="DAV:">

<a:response>
   <a:href>http://www.example.com/exchange/useralias/inbox/OutlookMsg.eml/Test1.txt</a:href>
   <a:propstat>
      <a:status>HTTP/1.1 200 OK</a:status>
      <a:prop>
         <d:x7ffb0040 b:dt="dateTime.tz">4501-01-01T00:00:00.000Z</d:x7ffb0040>
         <d:x7ffc0040 b:dt="dateTime.tz">4501-01-01T00:00:00.000Z</d:x7ffc0040>
         <d:x3704001e>Test1.txt</d:x3704001e>
         <d:x666c000b b:dt="boolean">0</d:x666c000b>
         <d:x7ffd0003 b:dt="int">0</d:x7ffd0003>
         <d:x37050003 b:dt="int">1</d:x37050003>
         <d:x68100102 b:dt="bin.base64">AAAAAAAAAAAAAAAAAAA=</d:x68100102>
         <e:attachmentfilename>Test1.txt</e:attachmentfilename>
         <d:x0e200003 b:dt="int">3612</d:x0e200003>
         <d:x3703001e>.txt</d:x3703001e>
         <d:x370b0003 b:dt="int">-1</d:x370b0003>
         <d:x3f880014 b:dt="i8">7492863880037662721</d:x3f880014>
         <d:x0ff90102 b:dt="bin.base64">5CtKq+g/ykGKEseEnQDIZQ==</d:x0ff90102>
         <d:x7ffe000b b:dt="boolean">0</d:x7ffe000b>
         <d:x7ffa0003 b:dt="int">0</d:x7ffa0003>
         <d:x0e210003 b:dt="int">0</d:x0e210003>
         <d:x37020102 b:dt="bin.base64"/>
         <i:cn>Test1.txt</i:cn>
         <d:x37140003 b:dt="int">0</d:x37140003>
         <d:x37090102 b:dt="bin.base64">AQAJAAAD3AYA  ... AAA=</d:x37090102>
      </a:prop>
   </a:propstat>
   <a:propstat>
    <a:status>HTTP/1.1 200 OK</a:status>
    <a:prop><d:x0e12000d/><d:x0e13000d/></a:prop>
   </a:propstat>
</a:response>
</a:multistatus>

Request

X-MS-ENUMATTS /exchange/useralias/inbox/OutlookWebAccessMsg.eml HTTP/1.1
Host: www.example.com  

Response

HTTP/1.1 207 Multi-Status
<?xml version="1.0"?>
<a:multistatus xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
               xmlns:f="https://schemas.microsoft.com/mapi/"
               xmlns:e="urn:schemas:httpmail:"
               xmlns:c="xml:"
               xmlns:d="https://schemas.microsoft.com/mapi/proptag/"
               xmlns:g="https://schemas.microsoft.com/exchange/"
               xmlns:j="urn:schemas-microsoft-com:office:office"
               xmlns:h="https://schemas.microsoft.com/repl/"
               xmlns:i="urn:schemas:contacts:"
               xmlns:a="DAV:">

   <a:response>
      <a:href>http://www.example.com/exchange/useralias/inbox/OutlookWebAccessMsg.eml/Test1.txt</a:href>
      <a:propstat>
         <a:status>HTTP/1.1 200 OK</a:status>
         <a:prop>
            <d:x3704001e>test1.txt</d:x3704001e>
            <d:x666c000b b:dt="boolean">0</d:x666c000b>
            <d:x37050003 b:dt="int">1</d:x37050003>
            <d:x68100102 b:dt="bin.base64">AAAAAAAAAAAAAAAAAAA=</d:x68100102>
            <e:attachmentfilename>Test1.txt</e:attachmentfilename>
            <d:x0e200003 b:dt="int">64</d:x0e200003>
            <d:x3703001e>txt</d:x3703001e>
            <d:x370b0003 b:dt="int">-1</d:x370b0003>
            <d:x3f880014 b:dt="i8">-5189272670637654015</d:x3f880014>
            <d:x3716001e>attachment</d:x3716001e>
            <d:x0ff90102 b:dt="bin.base64">EHCTnIjFUEiyp2fMS2Nz1Q==</d:x0ff90102>
            <d:x0e210003 b:dt="int">0</d:x0e210003>
            <i:cn>Test1.txt</i:cn>
            <d:x370e001e>application/octet-stream</d:x370e001e>
         </a:prop>
      </a:propstat>
      <a:propstat>
         <a:status>HTTP/1.1 200 OK</a:status>
         <a:prop>
            <d:x0e12000d/><d:x0e13000d/>
         </a:prop>
      </a:propstat>
   </a:response>
</a:multistatus>