mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -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 {
|
public class PopConnection extends AbstractConnection {
|
||||||
private List<ExchangeSession.Message> messages;
|
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) {
|
public PopConnection(Socket clientSocket) {
|
||||||
super(PopConnection.class.getSimpleName(), clientSocket, null);
|
super(PopConnection.class.getSimpleName(), clientSocket, null);
|
||||||
}
|
}
|
||||||
@ -149,6 +153,8 @@ public class PopConnection extends AbstractConnection {
|
|||||||
if ("STAT".equalsIgnoreCase(command)) {
|
if ("STAT".equalsIgnoreCase(command)) {
|
||||||
sendOK(messages.size() + " " +
|
sendOK(messages.size() + " " +
|
||||||
getTotalMessagesLength());
|
getTotalMessagesLength());
|
||||||
|
} else if ("NOOP".equalsIgnoreCase(command)) {
|
||||||
|
sendOK("");
|
||||||
} else if ("LIST".equalsIgnoreCase(command)) {
|
} else if ("LIST".equalsIgnoreCase(command)) {
|
||||||
if (tokens.hasMoreTokens()) {
|
if (tokens.hasMoreTokens()) {
|
||||||
String token = tokens.nextToken();
|
String token = tokens.nextToken();
|
||||||
|
Loading…
Reference in New Issue
Block a user