Query for Getting Mails of Specific Date Range using Soap API in C#

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
Sarvesh
Posts: 3
Joined: Mon Aug 07, 2023 8:10 am

Query for Getting Mails of Specific Date Range using Soap API in C#

Post by Sarvesh »

Hello,

I am trying to get emails from zimbra server for migration to Gmails but I have to apply date filter need to get emails of particular date range how should we create a query for that .sharing sample code how we are executing searchRequest
searchRequest searchRequest = new searchRequest()
{
fetch = "all",
types = "message,conversation",
limit =1000,
query = " in:\"Sent\"",
};

var listofmail = zimbra.searchRequestAsync(headerContext, searchRequest).Result;

Need help in to pass date range in query .

kindly provide with a needful solution.
Post Reply