Home arrow static arrow Java Programming [Archive] - A doubt about mailing concept
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - A doubt about mailing concept
This topic has 10 replies on 1 page.

Posts:474
Registered: 3/12/04
A doubt about mailing concept  
Jul 25, 2004 10:55 AM



 
Hi i just ended up completing mail servlet from where i can send mail through a SMTP and recieve at
my POP account.Attachments too can be included/downloaded in both cases.
1>
The problem is that when i login to pop account and see the messages after it is retrieved
, i get only new messages and not the ones which have been viewed already as we do in
Outlook express.When i see them through outlook express first and then go to inbox from my servlet,those messages are not there and i get Empty.

2>Every time retrieval process starts to show same messages again.

How to handle this ?.I find illustration of codes in java-mail working in same way .
 

Posts:474
Registered: 3/12/04
Re: A doubt about mailing concept  
Jul 25, 2004 10:56 AM (reply 1 of 10)



 
2> clause applies to my servlet
 

Posts:18,384
Registered: 21.03.00
Re: A doubt about mailing concept  
Jul 25, 2004 11:05 AM (reply 2 of 10)



 
Hi,

Case 1 is what usually happens when you pop. You say, give me the message and remove it from the server. That is why outlook express can't see them. They have been removed. In outlook express it is possible to say, get the message and leave a copy on the server. You should try to implement that too.

/Kaj
 

Posts:474
Registered: 3/12/04
Re: A doubt about mailing concept  
Jul 25, 2004 11:09 AM (reply 3 of 10)



 
Sorry,wrong interpretation or my words lack understanding.I mean outlook express detects them but when i see them on my servlet again.They r missing.Do u mean outlook express delete them.
Secondy only messages are shown and not the ones which have been viewed.I think they should also be shown in mail boxes
 

Posts:18,384
Registered: 21.03.00
Re: A doubt about mailing concept  
Jul 25, 2004 11:12 AM (reply 4 of 10)



 
Hi,

Yes outlook removes them, you can configure it to leave a copy.

Secondy only messages are shown and not the ones which have been viewed.I think they should also be shown in mail boxes

What do you mean?

/Kaj

 

Posts:474
Registered: 3/12/04
Re: A doubt about mailing concept  
Jul 25, 2004 11:42 AM (reply 5 of 10)



 
But if outlook removes them then how it detects the same message again and at same time not initializing retrieval process from begining.This means copy is there.I dont want to go for outlook express.I want to do it in my code.Some recommendation ?
 

Posts:474
Registered: 3/12/04
Re: A doubt about mailing concept  
Jul 25, 2004 11:44 AM (reply 6 of 10)



 
If this is the limitation of Javamail as i have not seen a single code either in demo or anywhere then i
would say it is good for nothing
 

Posts:37,103
Registered: 3/30/99
Re: A doubt about mailing concept  
Jul 25, 2004 12:08 PM (reply 7 of 10)



 
If this is the limitation of Javamail as i have not
seen a single code either in demo or anywhere then i
would say it is good for nothing

It's not a limitation of Java. You need to understand the POP protocol. I don't think there's a way with POP to read a message and leave it on the server. As far as I know, once you read a message, it comes off the server. You need to manage its storage after that. The IMAP protocol allows you to read a message but leave it on the server. Read up on these protocols, and to through the [url http://java.sun.com/developer/onlineTraining/JavaMail/]JavaMail tutorial[/url]
 

Posts:18,384
Registered: 21.03.00
Re: A doubt about mailing concept  
Jul 25, 2004 12:34 PM (reply 8 of 10)



 
Hi,

It is possible to read messages using pop, and still leave it on the server. Read the rfc for pop:
http://email.about.com/gi/dynamic/offsite.htm?zi=1/XJ&sdn=email&zu=http%3A%2F%2Fwww.imc.org%2Frfc1939

You can also read this article for an understanding of pop.
http://email.about.com/cs/standards/a/how_pop_works.htm

/Kaj
 

Posts:37,103
Registered: 3/30/99
Re: A doubt about mailing concept  
Jul 25, 2004 12:44 PM (reply 9 of 10)



 
Hi,

It is possible to read messages using pop, and still
leave it on the server. Read the rfc for pop:
http://email.about.com/gi/dynamic/offsite.htm?zi=1/XJ&s
n=email&zu=http%3A%2F%2Fwww.imc.org%2Frfc1939

Really? I could have sworn that was not the case. I guess I should have looked at the spec before offering advice.
 

Posts:474
Registered: 3/12/04
Re: A doubt about mailing concept  
Jul 25, 2004 12:49 PM (reply 10 of 10)



 
Ok no gruel please.The conculsion give birth to another doubt that what is the significance of flags
such as flag[].flg.SEEN
flag.flg.DELETED
flag.fel.USER
etc if u say that once mail is seen it is deleted.Do u think could it could it be possible to keep such
a huge database of emails as files on server by providers such as yahoo,hotmail etc. ?
 
This topic has 10 replies on 1 page.