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); }