Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

4.2 Request That the Server Decompress and Decrypt Rights-Managed E-mail Messages

To retrieve a new email message from the server and request that the server decompress and decrypt rights-managed email messages, the client sends the Sync command and sets the RightsManagementSupport element to TRUE. The response includes a new rights-managed email message, which has the rights policy template included in the RightsManagementLicense element.

Request

<?xml version="1.0" encoding="utf-8"?>
<Sync xmlns:airsyncbase="AirSyncBase:" xmlns:rm="RightsManagement:" xmlns="AirSync:">
  <Collections>
    <Collection>
      <SyncKey>624199877</SyncKey>
      <CollectionId>5</CollectionId>
      <GetChanges>1</GetChanges>
      <Options>
        <rm:RightsManagementSupport>1</rm:RightsManagementSupport>
        <airsyncbase:BodyPreference>
          <airsyncbase:Type>1</airsyncbase:Type>
          <airsyncbase:TruncationSize>1024</airsyncbase:TruncationSize>
        </airsyncbase:BodyPreference>
        <airsyncbase:BodyPartPreference>
          <airsyncbase:Type>2</airsyncbase:Type>
        </airsyncbase:BodyPartPreference>
      </Options>
    </Collection>
  </Collections>
</Sync>

Response

<?xml version="1.0" encoding="utf-8"?>
<Sync xmlns:email="Email:" xmlns:airsyncbase="AirSyncBase:" xmlns:email2="Email2:" xmlns:rm="RightsManagement:" xmlns="AirSync:">
  <Collections>
    <Collection>
      <SyncKey>1556727147</SyncKey>
      <CollectionId>5</CollectionId>
      <Status>1</Status>
      <Commands>
        <Add>
          <ServerId>5:1</ServerId>
          <ApplicationData>
            <email:To>"T0SyncUser3" &lt;T0SyncUser3@contoso.com;</email:To>
            <email:From>"T0SyncUser1" &lt;T0SyncUser1@contoso.com&gt;</email:From>
            <email:Subject>DoNotForward</email:Subject>
            <email:DateReceived>2010-07-01T00:23:24.232Z</email:DateReceived>
            <email:DisplayTo>T0SyncUser3</email:DisplayTo>
            <email:ThreadTopic>DoNotForward</email:ThreadTopic>
            <email:Importance>1</email:Importance>
            <email:Read>0</email:Read>
            <airsyncbase:Body>
              <airsyncbase:Type>1</airsyncbase:Type>
              <airsyncbase:EstimatedDataSize>64</airsyncbase:EstimatedDataSize>
              <airsyncbase:Data>This is a test message that we want to use.</airsyncbase:Data>
            </airsyncbase:Body>
            <email:MessageClass>IPM.Note</email:MessageClass>
            <email:InternetCPID>28591</email:InternetCPID>
            <email:Flag />
            <email:ContentClass>urn:content-classes:message</email:ContentClass>
            <airsyncbase:NativeBodyType>1</airsyncbase:NativeBodyType>
            <email2:ConversationId>…</email2:ConversationId>
            <email2:ConversationIndex>…</email2:ConversationIndex>
            <email:Categories />
            <airsyncbase:BodyPart>
              <airsyncbase:Status>1</airsyncbase:Status>
              <airsyncbase:Type>2</airsyncbase:Type>
              <airsyncbase:EstimatedDataSize>90</airsyncbase:EstimatedDataSize>
              <airsyncbase:Data>&lt;div&gt;
&lt;div&gt;This is a test message that we want to use.&lt;/div&gt;
&lt;/div&gt;
</airsyncbase:Data>
            </airsyncbase:BodyPart>
            <rm:RightsManagementLicense>
              <rm:Owner>0</rm:Owner>
              <rm:ContentOwner>T0SyncUser1@contoso.com</rm:ContentOwner>
              <rm:ReplyAllAllowed>1</rm:ReplyAllAllowed>
              <rm:EditAllowed>1</rm:EditAllowed>
              <rm:ReplyAllowed>1</rm:ReplyAllowed>
              <rm:ForwardAllowed>0</rm:ForwardAllowed>
              <rm:ExportAllowed>0</rm:ExportAllowed>
              <rm:ModifyRecipientsAllowed>0</rm:ModifyRecipientsAllowed>
              <rm:TemplateID>cf5cf348-a8d7-40d5-91ef-a600b88a395d</rm:TemplateID>
              <rm:ExtractAllowed>0</rm:ExtractAllowed>
              <rm:TemplateDescription>Recipients can read this message, but they can't forward, print, or copy content. The conversation owner has full permission to their message and all replies.</rm:TemplateDescription>
              <rm:ContentExpiryDate>9999-12-30T23:59:59.999Z</rm:ContentExpiryDate>
              <rm:TemplateName>Do Not Forward</rm:TemplateName>
              <rm:PrintAllowed>0</rm:PrintAllowed>
              <rm:ProgrammaticAccessAllowed>0</rm:ProgrammaticAccessAllowed>
            </rm:RightsManagementLicense>
          </ApplicationData>
        </Add>
      </Commands>
    </Collection>
  </Collections>
</Sync>
Show:
© 2014 Microsoft. All rights reserved.