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
精彩评论