DefaultImapDecoder should only parse the command if its valid for the state of 
the session
------------------------------------------------------------------------------------------

                 Key: IMAP-240
                 URL: https://issues.apache.org/jira/browse/IMAP-240
             Project: JAMES Imap
          Issue Type: Bug
          Components: Parser
    Affects Versions: 0.2-M1, 0.1
            Reporter: Norman Maurer
             Fix For: 0.2


At the momen DefailImapDecoder lookup the right ImapCommandParser for a given 
command and then use it to parse it. It does this even if the command is not 
valid for the state, this should get improved. There is no need todo the 
parsing if we will not execute it later.

Better to fail fast here..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to