I want to save attachment from email using get imap mail activity without using For each loop because takes time to go through each mail. Is there any other method to use to download the attachment.
Ive used mailMessages = mailMessages.AsEnumerable().Where(Function(x) x.Subject.ToString.Equals(“requiredSubject”)).ToList to filter out the email with subject.
Welcome to the Community!
It depends what would you like to achieve. Without loop you can’t download attachments from all emails.