开发者

Exchange server search from android email

I am trying to search exchange server mailbox by the following command from a android client.

<Search>  
    <Store>
        <Name>Mailbox</Name>
        <Query> 
            <And>
            <Class>Email</Class>  
            <CollectionId>5</CollectionId>
            <FreeText&开发者_如何学Gogt;a</FreeText>
           </And>
        </Query>
    <Options>
        <Range>0-4</Range>
    </Options>
 </Store>

But the response is a status error...

<Search>
<Status>1</Status>
<Response>
    <Store>
    <Status>2</Status>
    .............

Any pointers?

Thanks in advance


How did get CollectionId ? You should use cmd = FolderSync to get server id.

let collectionId = server id

you could see this

Android mail search using Exchange Activesync

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜