I use PHP Zimbra-API and try to get messages by search request. My request is
$req = new \Zimbra\Mail\Request\Search();
$req->setQuery('Mail Delivery System in:inbox')
->setResultMode('IDS')
->setField('subject')
->setSearchTypes('message')
->setLimit(1000);
How can I get response? I didn't find any method of Search like getRespone() or something else. Or my request is incorrect?
The code
They recently added a doc section showing exactly your use case in docs/usage.md:
The function
The
search()function used by the example and defined in src/Mail/MailApi.php has all the parameters needed for pagination and other stuffQuery Syntax
Regarding the query syntax please refer to the official Zimbra documentation
The "Search Language Structure" described is a common standard between webmail usage, Rest API and Soap API (the one used by this library)