POP3: implement NOOP command

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@621 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-07-21 22:16:39 +00:00
parent b5fa7ef521
commit c91862b4a8
1 changed files with 7 additions and 1 deletions

View File

@ -39,7 +39,11 @@ import java.util.StringTokenizer;
public class PopConnection extends AbstractConnection {
private List<ExchangeSession.Message> messages;
// Initialize the streams and start the thread
/**
* Initialize the streams and start the thread.
*
* @param clientSocket POP client socket
*/
public PopConnection(Socket clientSocket) {
super(PopConnection.class.getSimpleName(), clientSocket, null);
}
@ -149,6 +153,8 @@ public class PopConnection extends AbstractConnection {
if ("STAT".equalsIgnoreCase(command)) {
sendOK(messages.size() + " " +
getTotalMessagesLength());
} else if ("NOOP".equalsIgnoreCase(command)) {
sendOK("");
} else if ("LIST".equalsIgnoreCase(command)) {
if (tokens.hasMoreTokens()) {
String token = tokens.nextToken();