帮助我了解电子邮件中的UIDL [英] HELP ME ABOUT UIDL IN EMAIL

查看:230
本文介绍了帮助我了解电子邮件中的UIDL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



嗨全世界的每个人!

我正在编写一个使用Imap从服务器获取邮件的项目。下来,我看到UIDL属性,但我不太了解它。如果有人知道这个,请帮助我!非常感谢你!


hi everybody all over the world!
I were coding a project which using Imap to get mail from server. When get down it , i see UIDL property but i don't know deeply about it. if any one know this, please help me! thank you so much!

推荐答案

请参阅 POP3 / IMAP4 / Exchange Web服务/ WebDAV协议中的唯一标识符(UIDL) [ ^ ]

Refer- Unique Identifier (UIDL) in POP3/IMAP4/Exchange Web Service/WebDAV protocol[^]
Quote:

使用唯一标识符(UIDL)



邮件服务器为同一帐户中的每封电子邮件分配唯一标识符。您可以通过MailInfo.UIDL属性获取每封电子邮件的UIDL。为避免两次收到相同的电子邮件,最好的方法是将检索到的电子邮件的UIDL存储到文本文件或数据库中。下次检索电子邮件之前,请将本地uidl列表与远程uidl进行比较。如果这个uidl存在于你的本地uidl列表中,那么你就不会收到它,否则你应该收到它。

Using Unique Identifier (UIDL)

The mail server assigns an unique identifier for every email in the same account. You can get the UIDL for every email by MailInfo.UIDL property. To avoid to receive the same email twice, the best way is storing the UIDL of email retrieved to a text file or database. Next time before you retrieve the email, compare your local uidl list with remote uidl. If this uidl exists in your local uidl list, then you don't receive it, otherwise you should receive it.


这篇关于帮助我了解电子邮件中的UIDL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆