We need to be able to query messages stored in zimbra with various selection criteria, for ex:

All messages for user sent between dates, with To containing some email address, where the subject contains some text.

Anyone have any ideas?