擅长:python、mysql、java
<p>我自己找到了答案:</p>
<p><a href="http://www.limilabs.com/blog/unique-id-in-imap-protocol" rel="nofollow">http://www.limilabs.com/blog/unique-id-in-imap-protocol</a></p>
<blockquote>
<p>To identify a message across all folders you need 3 variables: UID,
folder name and FolderStatus.UIDValidity.</p>
<p>...</p>
<p>In most modern servers FolderStatus.UIDValidity changes rarely. However client that
remembers message UIDs between sessions must deal with such change and
act accordingly.</p>
</blockquote>
<p>结果是:无法从UID中获取文件夹名称。在</p>