我有下面的代码,从YahooMail获得的收件箱: -如何在Yahoo邮件中获取电子邮件地址?
this._store = _session.getStore("imaps");
this._store.connect("imap.mail.yahoo.com", 993, this._uid, this._pwd);
Folder inbox = this._store.getFolder("Inbox");
SearchTerm unread = new FlagTerm(new Flags(Flag.SEEN), false);
IMAPMessage[] msgs = (IMAPMessage[]) inbox.search(unread);
这回我变味精形式的未读邮件。 我前面有这行代码与Gmail的工作罚款: -
String ref = msg.getHeader("References")[0];
但是现在有了雅虎,这给了我Null Pointer Exception.
现在的问题是,被引用没有存储在邮件标题在YahooMail中,与Gmail不同?