I am using below code to get the emails
        oClient.Connect(oServer);
       
        MailInfo[] infos = oClient.GetMailInfos();
        int count = infos.Length;
        for (int i = 0; i < 100; i++)
        {
            MailInfo info = infos[i];
            if (oUIDLManager.FindUIDL(oServer, info.UIDL) != null)
            {
                continue;
            }
           
            Mail oMail = oClient.GetMail(info);
           oMail.SaveAs("fileName", true);
  
           }
but the MailInfo[] infos = oClient.GetMailInfos(); retreive the information of all the emails, so it is taking time to load. i have more than 9000 emails in the mail box.
But I need top 100 emails only each time.
SO can you please provide me any idea how can i get info of only 100 emails and also get top 100 emails according to date?
                      Edited by moderator
                       
10 years ago
 | 
Reason: better for search