java - How do I get email references in Yahoo mail? -


i have following code gets inbox yahoomail :-

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); 

this returned me unread messages in form of variable msg. earlier had line of code worked fine gmail :-

string ref = msg.getheader("references")[0]; 

but yahoo, gives me null pointer exception.

now question is, references not stored in message header, in yahoomail, unlike gmail ?

the references header set when reply message. if message you're reading not reply, it's not have references header. , replies depends on mailer sent reply add header; don't. have prepared header missing.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -