문제

I use OpenPop to read emails from a POP3 mail server, but it doesn't read emails in order. How do I get the most recent email?

도움이 되었습니까?

해결책

I using Mail.dll (mark emails as seen (read) using Mail.dll .NET IMAP library and IMAP protocol.)

using(Imap imap = new Imap())
{
imap.Connect("imap.example.com");    // or ConnectSSL for SSL
imap.Login("user", "password");

imap.SelectInbox();
List<long> uids = client.Search(Flag.Unseen);
if (uids.Count > 0)
    client.MarkMessageSeenByUID(uids[0]);
    imap.Close();
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top