dcsimg
problem while displaying the INBOx
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   bannu_naidu
Posted On:   Thursday, November 21, 2002 06:01 PM

hello sir/madam,

i am getting the mail pefectly. and it display all the fields of DATE,FROM,TO,SUBJECT and CONTENT OF MAIL. but what my problem is that for few mails i am getting NULL in FROM place. y it happens like that? the mails coming from cnn.com and excite.com is got only this problem. but not all mails coming from cnn.com. only few mails coming from cnn.com only had this problem.


i am using IMail server.

plz help me to solve this bug.

thank u
subra

Re: problem while displaying the INBOx

Posted By:   moon_departed  
Posted On:   Monday, November 25, 2002 11:32 PM

Try to check all

message.getFrom();
message.getReplyTo();
message.getReceivedDate();
message.getSentDate();

if message.getReplyTo() is not null, then can replace your "from" field, and if either one message.getReceivedDate() or message.getSentDate() is not null, then can replace your date field.

Re: problem while displaying the INBOx

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, November 22, 2002 06:45 AM

Messages don't have to have anything in any of the headers. In particular, it is OK to have no valid "From:" header (and OK to have no valid "To:" header also). Only the SMTP envelope fields are actually used, to transmit and deliver the message; the headers are not required.

About | Sitemap | Contact