1 17 18 package org.apache.james.imapserver.commands; 19 20 import org.apache.james.imapserver.ImapRequest; 21 import org.apache.james.imapserver.ImapSession; 22 23 import java.util.StringTokenizer ; 24 import java.util.List ; 25 26 class CheckCommand extends SelectedStateCommand 27 { 28 public CheckCommand() 29 { 30 this.commandName = "CHECK"; 31 } 32 33 protected boolean doProcess( ImapRequest request, ImapSession session, List argValues ) 34 { 35 int arguments = request.arguments(); 36 StringTokenizer commandLine = request.getCommandLine(); 37 String command = request.getCommand(); 38 39 if ( request.getCurrentMailbox().checkpoint() ) { 40 session.okResponse( command ); 41 session.checkSize(); 42 session.checkExpunge(); 43 } 44 else { 45 session.noResponse( command ); 46 } 47 return true; 48 } 49 } 50 | Popular Tags |