I have in the mail> 2 thousand messages in different folders. I have 10 messages in my folder, and I constantly sort them into other folders. Now essentially the problem.

How to get messages from one inbox? I tried through pop3, but it loads all the data.

using (var client = new Pop3Client()) { client.Connect("pop.mail.ru", 995, SecureSocketOptions.Auto); client.AuthenticationMechanisms.Remove("XOAUTH2"); client.Authenticate(login, password); for (int i = 0; i < client.Count; i++) { var message = client.GetMessage(i); } 
  • Try using IMAP. And please indicate the programming language - preferably both in the question text and in the labels. - newman
  • And there is still a bit of a similar question: ru.stackoverflow.com/questions/490481 / ... Perhaps you will find a solution to your problem there. - newman

0