如何区分已读还是未读邮件?我到网上查了,
Folder folder=store.getFolder("INBOX");
int numberOfTotal = folder.getMessageCount();
// 取得邮箱中已读过的信
int numberOfUnread = folder.getUnreadMessageCount();
// 取得邮箱中未读过的信
int numberOfNew = folder.getNewMessageCount();
System.out.println(numberOfTotal+"总数量");
System.out.println(numberOfUnread+"已读数量");
System.out.println(numberOfNew+"未读数量");
为何得到的总数量和已读数量是一样的,而未读数量是0,说明:邮箱当中已读的未读的都有