时间:2010-07-23 15:42:33

标签: java email imap javamail

2 个答案:

答案 0 :(得分:3)

答案 1 :(得分:2)

请注意:

Folder.HOLDS_MESSAGES == 1

Folder.HOLDS_FOLDERS == 2

Folder.HOLDS_FOLDERS & Folder.HOLDS_MESSAGES == 0(总是)

您可以尝试:Folder.HOLDS_FOLDERS | Folder.HOLDS_MESSAGES等于3