How to retrieve only new emails using POP3 protocol

让人想犯罪 __ 提交于 2019-11-29 07:26:37

You have to store the UIDL of each email in a local database. When you want to check for new mail, you retrieve the UIDLs on the server and see if you have if already in your local database; if not, it's a new mail.

Outlook uses the same strategy, BTW (see this KB article).

As long as your mailbox doesn't keep a copy of the emails on the server then you are fine and don't have to code for this.

Normally when an email client access the emails from a POP3 box they are downloaded and removed from the server.

Exchange is a different thing entirely.

Cheers

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!