Export (0) Print
Expand All
2 out of 2 rated this helpful - Rate this topic

X-MS-ENUMATTS Method

Exchange Server 2003
The WebDAVX-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 TagSchema PropertySent from OutlookSent from Outlook Web AccessSent from S/MIMESent from S/MIME Signed
PR_URL_COMP_NAME_WDAV:hrefYYYY
PR_DISPLAY_NAME_Wurn:schemas:contacts:cnYYYY
PR_ATTACH_EXTENSION_Whttp://schemas.microsoft.com/mapi/proptag/x3703001FYYNN
PR_ATTACH_FILENAME_Whttp://schemas.microsoft.com/mapi/proptag/x3704001FYYYY
PR_ATTACH_METHODhttp://schemas.microsoft.com/mapi/proptag/x37050003YYYN
PR_ATTACH_LONG_FILENAME_Wurn:schemas:httpmail:attachmentfilenameYYYY
PR_RENDERING_POSITIONhttp://schemas.microsoft.com/mapi/proptag/x370B0003YYYN
PR_ATTACH_MIME_TAG_Whttp://schemas.microsoft.com/mapi/proptag/x370E001FNYYY
PR_ATTACH_CONTENT_LOCATION_Whttp://schemas.microsoft.com/mapi/proptag/x3713001FNNNY
PR_ATTACH_FLAGShttp://schemas.microsoft.com/mapi/proptag/x37140003YNNN
PR_ATTACH_DISPOSTION_Whttp://schemas.microsoft.com/mapi/proptag/x3716001FNNYY
PR_ATTACH_SIZEhttp://schemas.microsoft.com/mapi/proptag/x0E200003YYYN
PR_ATTACH_NUMhttp://schemas.microsoft.com/mapi/proptag/x0E210003YYYN

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 CodeMeaning
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 WebDAVX-MS-ENUMATTS Method request on an e-mail message sent by Microsoft Outlook 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="http://schemas.microsoft.com/mapi/"
               xmlns:e="urn:schemas:httpmail:"
               xmlns:c="xml:"
               xmlns:d="http://schemas.microsoft.com/mapi/proptag/"
               xmlns:g="http://schemas.microsoft.com/exchange/"
               xmlns:j="urn:schemas-microsoft-com:office:office"
               xmlns:h="http://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>

Example

The following example illustrates a WebDAVX-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/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="http://schemas.microsoft.com/mapi/"
               xmlns:e="urn:schemas:httpmail:"
               xmlns:c="xml:"
               xmlns:d="http://schemas.microsoft.com/mapi/proptag/"
               xmlns:g="http://schemas.microsoft.com/exchange/"
               xmlns:j="urn:schemas-microsoft-com:office:office"
               xmlns:h="http://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>


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.