Free Support Forum - aspose.com

How do you use mailquery using Body not Empty

Try to build mailquery for Body not Empty.
Do you have examples for mailquery?

@elumicor,
Thank you for the question. It will take me a while to find this information for you. I will answer as soon as possible.

@elumicor,
You can create a query for your purposes as below:

MailQueryBuilder queryBuilder = new MailQueryBuilder();
queryBuilder.Body.NotEmpty();
MailQuery query = queryBuilder.GetQuery();

API Reference: MailQuery Class

If the issue persists, please describe where you want to receive messages using queries from.

Thanks, I will give it a try.