Index processing should happen on the client's device (server never sees the content). That defeats the purpose since you need full mailbox on your device for that. At least in the beginning.
Maybe over longer period it would be possible to integrate and maintain the index so, that you can guarantee the correctness without full mailbox.