简体   繁体   English

电子邮件收件箱文件夹中UID的最大值是多少?

[英]What is the maximum value for UID in an email inbox folder?

I'm working on an application that uses the UID to fetch emails from exchange server. 我正在使用UID从交换服务器获取电子邮件的应用程序。 The UID appears to be only 6 digits long. UID似乎只有6位数字长。 Does that mean its maximum value is 999999? 这是否意味着其最大值为999999? It's possible my inbox will reach over 1 million emails and I need a way to uniquely identify each email in the Inbox folder. 我的收件箱可能会收到超过一百万封电子邮件,并且我需要一种方法来唯一标识“收件箱”文件夹中的每封电子邮件。

By the RFC , it can be up to a 32-bit number, so 4,294,967,295: 通过RFC ,它最多可以是32位数字,因此4,294,967,295:

Unique Identifier (UID) Message Attribute: A 32-bit value assigned to each message, which when used with the unique identifier validity value (see below) forms a 64-bit value that MUST NOT refer to any other message in the mailbox or any subsequent mailbox with the same name forever. 唯一标识符(UID)消息属性:分配给每个消息的32位值,与唯一标识符有效性值(请参阅下文)一起使用时,将形成一个64位值,该值不得引用邮箱中的任何其他消息或任何其他消息。后续的邮箱永远具有相同的名称。

If you've had more than 4 billion emails in the past, the server will be forced to reindex, and change the UIDVALIDITY , invalidating any client caches. 如果您过去拥有超过40亿封电子邮件,服务器将被迫重新索引并更改UIDVALIDITY ,从而使所有客户端缓存无效。 If you currently have more than 4 billion, this cannot be strictly represented by an IMAP server. 如果您当前拥有的资产超过40亿,则IMAP服务器无法严格代表这一点。

Any given server implementation may have lower limits. 任何给定的服务器实现都可能具有较低的限制。 The numbers aren't zero padded, so it's likely you just haven't had a million messages yet. 这些数字不是零填充的,因此很可能您还没有一百万条消息。 When you do, you'll start seeing seven-digit UIDs. 完成后,您将开始看到七位数的UID。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 什么电子邮件服务器或在线电子邮件服务允许为收件箱创建无限的电子邮件别名(通过API) - What email server or online email service allows for creating unlimited email alias for an inbox (via API) 无法使用ews vb.net将收件箱电子邮件项目保存到本地文件夹 - Cannot save inbox email items to local folder using ews vb.net 使用 EWS 查找收件箱文件夹的所有子文件夹 - Find all subfolders of the Inbox folder using EWS Powershell:使用 EWS 搜索不在收件箱中的 email - Powershell: Using EWS to search for email which is not in the Inbox Exchange Web服务收件箱文件夹正文搜索不起作用 - Exchange web service inbox folder body search not working 在Exchange 2013中使用Powershell从Exchange帐户收件箱中读取电子邮件 - Reading email from Exchange account inbox using Powershell in Exchange 2013 在电子邮件上设置删除标记,IMAP收件箱中没有任何反应 - Setting the delete flag on email, nothing happens in IMAP inbox Exchange Web服务,从收件箱中移动项目,它将从收件箱中删除但不会显示在目标文件夹中 - Exchange Web Service, move an item from Inbox it gets removed from Inbox but doesn't show up in the destination Folder 创建收件箱规则,需要指定多个字符串以潜在地匹配电子邮件正文 - Creating Inbox rules and need to specify multiple strings to potentially match email body EWS 将电子邮件移动到嵌套文件夹 - EWS Move Email to Nested Folder
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM