com.icegreen.greenmail.pop3.commands
Class RsetCommand

java.lang.Object
  extended by com.icegreen.greenmail.pop3.commands.Pop3Command
      extended by com.icegreen.greenmail.pop3.commands.RsetCommand

public class RsetCommand
extends Pop3Command

Handles the RSET command. See http://www.ietf.org/rfc/rfc1939.txt: Arguments: none Restrictions: May only be given in the TRANSACTION state. Discussion: If any messages have been marked as deleted by the POP3 server, they are unmarked. The POP3 server then replies with a positive response. Possible Responses: +OK Examples: C: RSET S: +OK maildrop has 2 messages (320 octets)

Since:
Dec 21, 2006
Version:
$Id: $
Author:
Marcel May

Constructor Summary
RsetCommand()
           
 
Method Summary
 void execute(Pop3Connection conn, Pop3State state, String cmd)
           
 boolean isValidForState(Pop3State state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RsetCommand

public RsetCommand()
Method Detail

isValidForState

public boolean isValidForState(Pop3State state)
Specified by:
isValidForState in class Pop3Command

execute

public void execute(Pop3Connection conn,
                    Pop3State state,
                    String cmd)
Specified by:
execute in class Pop3Command