I am using Aspose.Email v21.04.
I am trying to list images from a certain folder, but only those which hold attachments.
I did not see any option to add it to query while calling the API:
imapClient.ListMessages(folderName, query, itemsPerPage).
So right now I am using the API
var message = imapClient.FetchMessage
and then checking if message.Attachments.Count > 0 for each message in folder.
It’s a big overhead in terms of performance.
Is there another way to filter messages without calling FetchMessage?