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?
@Orenk9,
Thank you for posting the query. Unfortunately, I did not find such a capability in Aspose.Email. I added a ticket with ID EMAILNET-40333 in our tracking system. Our development team will consider implementing this feature. I will inform you of any progress.
@Orenk9, RFC 3501 does not assume search by such attribute like the existence of attachments but Gmail has IMAP Extensions that allow implementing this search. With Aspose.Email 21.8, you can perform this search for Gmail as shown below:
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.