Quantcast
Viewing all articles
Browse latest Browse all 168

Developers • Re: REST API for searching emails and deleting them

By passing query parameter to the Rest API, you may obtain message information in JSON format and you can get message id from that message information.


Code:

https://servername/home/username?fmt=json&query=QUERY_STRINGQUERY_STRING be like in:<FOLDERNAME> AND after:<MM/DD/YYY> AND before:<MM/DD/YYYY>API request: https://servername/home/username?fmt=json&query=in:<FOLDERNAME> AND after:<MM/DD/YYY> AND before:<MM/DD/YYYY>Example: (below request provides Inbox folder's messages which received on 3-May-2023.)https://servername/home/username?fmt=json&query=in:inbox AND after:5/2/2023 AND before:5/4/2023
You can refer this https://wiki.zimbra.com/wiki/Zimbra_Web ... earch_Tips to prepare QUERY_STRING.

Statistics: Posted by mitesh.savani — Fri May 05, 2023 12:12 pm



Viewing all articles
Browse latest Browse all 168

Trending Articles