mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
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:
parent
b5fa7ef521
commit
c91862b4a8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user