我正在尝试通过以下方式获取电子邮件列表Message msg[] = folder.getMessages();之后,我得到每个邮件的细节,同时我得到javax.mail.MessagingException: Failed to load IMAP envelope
这是产生错误的一条邮件的协议跟踪-A7 FETCH 2 (ENVELOPE INTERNALDATE RFC822.SIZE)
* 2 FETCH (RFC822.SIZE 2567 INTERNALDATE"29-Apr-2011 13:49:01 +0000" ENVELOPE ("Fri, 29 Apr 2011 19:19:01 +0530""I NEES YOUR ASSISANCE?????" (("Mr Leung Cheung" NIL"info""milium.com.br")) (("Mr Leung Cheung" NIL"info""milium.com.br")) ((NIL NIL"mr.leung_cheung""live.hk")) () NIL NIL NIL"<20110429134718.70333732030A@mail2.milium.com.br>"))
A7 OK FETCH Completed
错误的Stacktrace是-Failed to load IMAP envelope stacktrace: javax.mail.MessagingException: Failed to load IMAP envelope
at com.sun.mail.imap.IMAPMessage.loadEnvelope(IMAPMessage.java:1276)
at com.sun.mail.imap.IMAPMessage.getSentDate(IMAPMessage.java:377)
at com.my.main.model.TestMail.showAllMails(TestMail.java:95)
at com.my.main.model.TestMail.main(TestMail.java:45)
我在用JavaMail-1.5 .
如何解决这个错误,有没有办法或设置来解决它,并获得邮件的详细信息,而不跳过是该邮件?