I'm trying to fetch 50 mails or so and then call GetMessage() in a foreach loop, but it took a long time! Is there any way to speed up getting message in mailkit? here is my code:
var mailItems = folder.Fetch(startRange, endRange,MessageSummaryItems.UniqueId);
foreach (var item in mailItems)
{
var message = folder.GetMessage(item.UniqueId);
}
after using dotTrace profiling tools for Yahoo Mails the results are as follows: