2
我正在使用OpenPOP庫來獲取Gmail。問題是電子郵件沒有按照他們收到的順序。C#OpenPOP索引
pop3 = new Pop3Client();
pop3.Connect("pop.gmail.com", 995, true);
pop3.Authenticate("[email protected]", "test", AuthenticationMethod.UsernameAndPassword);
emailAmount = pop3.GetMessageSizes().Count;
for (int i = 1; i < emailAmount; i++)
{
tempMessage = pop3.GetMessage(i);
tbStatus.Text = ASCIIEncoding.ASCII.GetString(tempMessage.RawMessage);
}
pop3.Disconnect();
pop3.Dispose();
收到的電子郵件都是分散的。爲什麼是這樣的,我該如何解決它?