Posted By:
Tim_Meagh
Posted On:
Thursday, February 21, 2002 01:44 AM
I am writing a pop server and am having some problems.When i reply to the clients TOP command i dont get another command back. I would be greatful if someone could teel me the correct way to reply to this command. This is the code im having problems with: if(str.compareToIgnoreCase("TOP")==0) { //header details contained in string 'header' String header = theHeaderDetails(); out.println("+OK"); out.println("DATE: 20/02/02 "); out.println("FROM: tmeagh@yahoo.com "); out.println("TO: timmeagh@hotmail.com"); out.println("SUBJECT: TESTING "
More>>
I am writing a pop server and am having some problems.When i reply to the clients TOP command i dont get another command back.
I would be greatful if someone could teel me the correct way to reply to this command.
This is the code im having problems with:
if(str.compareToIgnoreCase("TOP")==0)
{
//header details contained in string 'header'
String header = theHeaderDetails();
out.println("+OK");
out.println("DATE: 20/02/02
");
out.println("FROM: tmeagh@yahoo.com
");
out.println("TO: timmeagh@hotmail.com");
out.println("SUBJECT: TESTING
");
out.println("CRLF.CRLF");
}
<<Less