Author: norman Date: Thu Jan 13 18:44:02 2011 New Revision: 1058705 URL: http://svn.apache.org/viewvc?rev=1058705&view=rev Log: Better only allow command in authenticate state
Modified: james/imap/trunk/message/src/main/java/org/apache/james/imap/decode/parser/UnselectCommandParser.java Modified: james/imap/trunk/message/src/main/java/org/apache/james/imap/decode/parser/UnselectCommandParser.java URL: http://svn.apache.org/viewvc/james/imap/trunk/message/src/main/java/org/apache/james/imap/decode/parser/UnselectCommandParser.java?rev=1058705&r1=1058704&r2=1058705&view=diff ============================================================================== --- james/imap/trunk/message/src/main/java/org/apache/james/imap/decode/parser/UnselectCommandParser.java (original) +++ james/imap/trunk/message/src/main/java/org/apache/james/imap/decode/parser/UnselectCommandParser.java Thu Jan 13 18:44:02 2011 @@ -40,7 +40,7 @@ public class UnselectCommandParser exten public UnselectCommandParser() { // from the RFC it seems like the command should be valid in any state. At least kind of, as // we will return a "BAD" response if no mailbox is currently selected in the UnselectProcessor - super(ImapCommand.anyStateCommand(ImapConstants.UNSELECT_COMMAND_NAME)); + super(ImapCommand.authenticatedStateCommand(ImapConstants.UNSELECT_COMMAND_NAME)); } --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org