本文介绍了如何使用IMAP唯一标识Java邮件消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Java Mail中的IMAP消息由其相对位置编号(从1开始)标识.
IMAP Message in Java Mail is identified by it's relative position number which starts from 1.
请参阅, http://docs.oracle.com/javaee/1.4/api/javax/mail/Message.html#getMessageNumber ()
消息号是一个临时的详细信息.
Message number is a temporary details.
是否有一种方法可以永久唯一地标识使用Java Mail API通过IMAP通过邮箱访问邮箱的邮件/消息?
Is there a way to permanently uniquely identify a mail/message which accessing a mailbox via IMAP using Java Mail API which holds true across sessions ?
推荐答案
查看UIDFolder接口,该接口公开了IMAP UID功能.
Look at the UIDFolder interface, which exposes the IMAP UID capability.
这篇关于如何使用IMAP唯一标识Java邮件消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!