IMAP Message UID

余生颓废 提交于 2019-12-13 19:11:37

问题


In RFC3501 there is 2.3.1.1. Unique Identifier (UID) section: 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.

Most tools like Zend\Mail in PHP use the microtime, process id and uname to generate an UID for an email. So I get something like 1400603156.789.5617.imac.home,S=129:2,S. This is not conform with RFC3501. Zend Mail can handle Maildir format so I don't care about managing email files on the harddisk. But if I can't handle Zend Mail's UID for RFC conform transmission I need a seperate database where I have a allocation. So I still need to manage the UIDs in a seperate place. Or is there another solution?

Br

来源:https://stackoverflow.com/questions/23782622/imap-message-uid

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