4.12.3.1 Request

The following example shows the Search command request (section 2.2.1.16) sent from the client to the server to search the Inbox folder by using the keyword "text".

 <?xml version="1.0" encoding="utf-8"?>
 <Search xmlns="Search" xmlns:airsyncbase="AirSyncBase" xmlns:airsync="AirSync">
    <Store>
       <Name>Mailbox</Name>
       <Query>
          <And>
             <airsync:Class>Email</airsync:Class>
             <FreeText>text</FreeText>
          </And>
       </Query>
       <Options>
          <RebuildResults/>
          <DeepTraversal/>
          <Range>0-999</Range>
          <airsyncbase:BodyPreference>
             <airsyncbase:Type>4</airsyncbase:Type>
             <airsyncbase:TruncationSize>1024</airsyncbase:TruncationSize>
             <airsyncbase:Preview>120</airsyncbase:Preview>
          </airsyncbase:BodyPreference>
          <airsync:MIMESupport>2</airsync:MIMESupport>
       </Options>
    </Store>
 </Search>