MS Exchange POP3 UIDL命令提供的UID是否真的唯一? [英] Is the UID provided by MS Exchange POP3 UIDL command truly unique?

查看:197
本文介绍了MS Exchange POP3 UIDL命令提供的UID是否真的唯一?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Perl中使用Net :: POP3遍历MS Exchange服务器上的邮箱.我在每个消息编号上运行UIDL命令,并将返回的ID与以前看到的ID进行比较,以查看过去是否处理过此消息.但是,我还发现在单个POP3邮箱中,相同的UID似乎多次出现在不同的邮件中.

I'm using Net::POP3 in Perl to iterate through a mailbox on an MS Exchange server. I run the UIDL command on each message number and compare the ID returned to previously-seen IDs to see if I've dealt with this message in the past. However, I'm also finding that within an individual POP3 mailbox, the same UID seems to come up multiple times for different messages.

知道为什么会这样吗? UID不是真正唯一吗?还是在同一邮箱中以某种方式重复邮件?

Any idea why this might be happening? Is the UID not truly unique? Or are the messages somehow being duplicated within the same mailbox?

推荐答案

RFC 说:

虽然通常更适合 服务器实施 将任意分配的唯一ID存储在maildrop中, 本规范旨在允许唯一标识为 计算为消息的哈希值. 客户应该能够 处理两个相同副本的情况 邮件投递中的邮件具有相同的唯一ID.

While it is generally preferable for server implementations to store arbitrarily assigned unique-ids in the maildrop, this specification is intended to permit unique-ids to be calculated as a hash of the message. Clients should be able to handle a situation where two identical copies of a message in a maildrop have the same unique-id.

[我的重点]

这篇关于MS Exchange POP3 UIDL命令提供的UID是否真的唯一?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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