* 邮件是否下载下来保存到本地的还是保存在服务器上的?
* 如果是获取服务器上的邮件的,就可以得到某个邮箱(比如INBOX)中的邮件总数.javax.mail.Folder#getMessageCount()
Ref:
http://java.sun.com/products/javamail/javadocs/index.html?javax/mail/Folder.html
http://www.builderau.com.au/program/java/soa/Getting-the-mail-in-receiving-in-JavaMail/0,339024620,339228060,00.htm
* 如果是获取服务器上的邮件的,就可以得到某个邮箱(比如INBOX)中的邮件总数.javax.mail.Folder#getMessageCount()
Ref:
http://java.sun.com/products/javamail/javadocs/index.html?javax/mail/Folder.html
http://www.builderau.com.au/program/java/soa/Getting-the-mail-in-receiving-in-JavaMail/0,339024620,339228060,00.htm
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货