Skip to content

Instantly share code, notes, and snippets.

@ftclausen
Created February 18, 2014 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ftclausen/9062439 to your computer and use it in GitHub Desktop.
Save ftclausen/9062439 to your computer and use it in GitHub Desktop.
Davmail -> Exhange server SOAP request.
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:RequestServerVersion Version="Exchange2010_SP1"/>
</soap:Header>
<soap:Body>
<m:FindFolder Traversal="Shallow">
<m:FolderShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:ExtendedFieldURI PropertyTag="0x670a" PropertyType="SystemTime"/>
<t:ExtendedFieldURI PropertyTag="0x3613" PropertyType="String"/>
<t:ExtendedFieldURI PropertyTag="0x3603" PropertyType="Integer"/>
<t:FieldURI FieldURI="folder:DisplayName"/>
<t:ExtendedFieldURI PropertyTag="0x10f3" PropertyType="String"/>
<t:ExtendedFieldURI PropertyTag="0x3008" PropertyType="SystemTime"/>
<t:ExtendedFieldURI PropertyTag="0x6751" PropertyType="Integer"/>
<t:ExtendedFieldURI PropertyTag="0x360a" PropertyType="Boolean"/>
<t:ExtendedFieldURI PropertyTag="0x6752" PropertyType="Integer"/>
<t:ExtendedFieldURI PropertyTag="0x3602" PropertyType="Integer"/>
</t:AdditionalProperties>
</m:FolderShape>
<m:Restriction>
<t:Or>
<t:IsEqualTo>
<t:ExtendedFieldURI PropertyTag="0x3613" PropertyType="String"/>
<t:FieldURIOrConstant>
<t:Constant Value="IPF.Note"/>
</t:FieldURIOrConstant>
</t:IsEqualTo>
<t:Not>
<t:Exists>
<t:ExtendedFieldURI PropertyTag="0x3613" PropertyType="String"/>
</t:Exists>
</t:Not>
</t:Or>
</m:Restriction>
<m:ParentFolderIds>
<t:FolderId Id="AAAkADA0MjNlM2NiLWRkZG=" ChangeKey="AQAAABQAAADvvV+=="/>
</m:ParentFolderIds>
</m:FindFolder>
</soap:Body>
</soap:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment