Free Support Forum - aspose.com

Aspose.Email.Clients.Imap.ImapClient.FetchMessages issues

Sample Code
var uids= messages.Select(m => m.ID).ToList();
IList<Aspose.Email.MailMessage> mailMessages = AsposeImapClient.FetchMessages(uids);
if (mailMessages != null && mailMessages.Count > 0 && mailMessages.Count == messages.Count)
{
//do things
}
else
{
logger.Info(“bulk download messages count mismatch {0}-{1}”, mailMessages == null ? 0 : mailMessages.Count, messages.Count);
}

I want to bulk download messages for 10 uniqueIds, but return 20 mailmessages after calling the FetchMessages(uids)

Here is my logs, “bulk download messages count mismatch 20-10”
Why?

Hi Team,

Any update?

@gavin.zhao

Can you please try using Aspose.Email for .NET 20.8 on your end. In case there is still an issue then please share the working sample code along with test account access to verify on our end.