Modified: james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/StatusCommand.java URL: http://svn.apache.org/viewvc/james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/StatusCommand.java?rev=655638&r1=655637&r2=655638&view=diff ============================================================================== --- james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/StatusCommand.java (original) +++ james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/StatusCommand.java Mon May 12 13:53:15 2008 @@ -22,7 +22,6 @@ import org.apache.james.api.imap.ImapCommand; import org.apache.james.api.imap.ImapConstants; import org.apache.james.imap.command.AuthenticatedStateCommand; -import org.apache.james.imap.command.CommandTemplate; /** @@ -32,78 +31,9 @@ */ class StatusCommand extends AuthenticatedStateCommand { - public static final String ARGS = "<mailbox> ( <status-data-item>+ )"; - /** @see ImapCommand#getName */ public String getName() { return ImapConstants.STATUS_COMMAND_NAME; } - - /** @see CommandTemplate#getArgSyntax */ - public String getArgSyntax() - { - return ARGS; - } } -/* -6.3.10. STATUS Command - - Arguments: mailbox name - status data item names - - Responses: untagged responses: STATUS - - Result: OK - status completed - NO - status failure: no status for that name - BAD - command unknown or arguments invalid - - The STATUS command requests the status of the indicated mailbox. - It does not change the currently selected mailbox, nor does it - affect the state of any messages in the queried mailbox (in - particular, STATUS MUST NOT cause messages to lose the \Recent - flag). - - The STATUS command provides an alternative to opening a second - IMAP4rev1 connection and doing an EXAMINE command on a mailbox to - query that mailbox's status without deselecting the current - mailbox in the first IMAP4rev1 connection. - - Unlike the LIST command, the STATUS command is not guaranteed to - be fast in its response. In some implementations, the server is - obliged to open the mailbox read-only internally to obtain certain - status information. Also unlike the LIST command, the STATUS - command does not accept wildcards. - - The currently defined status data items that can be requested are: - - MESSAGES The number of messages in the mailbox. - - RECENT The number of messages with the \Recent flag set. - - UIDNEXT The next UID value that will be assigned to a new - message in the mailbox. It is guaranteed that this - value will not change unless new messages are added - to the mailbox; and that it will change when new - messages are added even if those new messages are - subsequently expunged. - - - -Crispin Standards Track [Page 33] - -RFC 2060 IMAP4rev1 December 1996 - - - UIDVALIDITY The unique identifier validity value of the - mailbox. - - UNSEEN The number of messages which do not have the \Seen - flag set. - - - Example: C: A042 STATUS blurdybloop (UIDNEXT MESSAGES) - S: * STATUS blurdybloop (MESSAGES 231 UIDNEXT 44292) - S: A042 OK STATUS completed - -*/
Modified: james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/StoreCommand.java URL: http://svn.apache.org/viewvc/james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/StoreCommand.java?rev=655638&r1=655637&r2=655638&view=diff ============================================================================== --- james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/StoreCommand.java (original) +++ james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/StoreCommand.java Mon May 12 13:53:15 2008 @@ -21,7 +21,6 @@ import org.apache.james.api.imap.ImapCommand; import org.apache.james.api.imap.ImapConstants; -import org.apache.james.imap.command.CommandTemplate; import org.apache.james.imap.command.SelectedStateCommand; @@ -33,79 +32,9 @@ */ class StoreCommand extends SelectedStateCommand { - public static final String ARGS = "<Message-set> ['+'|'-']FLAG[.SILENT] <flag-list>"; - /** @see ImapCommand#getName */ public String getName() { return ImapConstants.STORE_COMMAND_NAME; } - - /** @see CommandTemplate#getArgSyntax */ - public String getArgSyntax() - { - return ARGS; - } } -/* -6.4.6. STORE Command - - Arguments: message set - message data item name - value for message data item - - Responses: untagged responses: FETCH - - Result: OK - store completed - NO - store error: can't store that data - BAD - command unknown or arguments invalid - - The STORE command alters data associated with a message in the - mailbox. Normally, STORE will return the updated value of the - data with an untagged FETCH response. A suffix of ".SILENT" in - the data item name prevents the untagged FETCH, and the server - SHOULD assume that the client has determined the updated value - itself or does not care about the updated value. - - Note: regardless of whether or not the ".SILENT" suffix was - used, the server SHOULD send an untagged FETCH response if a - change to a message's flags from an external source is - observed. The intent is that the status of the flags is - determinate without a race condition. - - The currently defined data items that can be stored are: - - FLAGS <flag list> - Replace the flags for the message with the - argument. The new value of the flags are returned - as if a FETCH of those flags was done. - - FLAGS.SILENT <flag list> - Equivalent to FLAGS, but without returning a new - value. - - +FLAGS <flag list> - Add the argument to the flags for the message. The - new value of the flags are returned as if a FETCH - of those flags was done. - - +FLAGS.SILENT <flag list> - Equivalent to +FLAGS, but without returning a new - value. - - -FLAGS <flag list> - Remove the argument from the flags for the message. - The new value of the flags are returned as if a - FETCH of those flags was done. - - -FLAGS.SILENT <flag list> - Equivalent to -FLAGS, but without returning a new - value. - - Example: C: A003 STORE 2:4 +FLAGS (\Deleted) - S: * 2 FETCH FLAGS (\Deleted \Seen) - S: * 3 FETCH FLAGS (\Deleted) - S: * 4 FETCH FLAGS (\Deleted \Flagged \Seen) - S: A003 OK STORE completed - -*/ Modified: james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/SubscribeCommand.java URL: http://svn.apache.org/viewvc/james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/SubscribeCommand.java?rev=655638&r1=655637&r2=655638&view=diff ============================================================================== --- james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/SubscribeCommand.java (original) +++ james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/SubscribeCommand.java Mon May 12 13:53:15 2008 @@ -22,7 +22,6 @@ import org.apache.james.api.imap.ImapCommand; import org.apache.james.api.imap.ImapConstants; import org.apache.james.imap.command.AuthenticatedStateCommand; -import org.apache.james.imap.command.CommandTemplate; /** @@ -31,15 +30,9 @@ * @version $Revision: 109034 $ */ class SubscribeCommand extends AuthenticatedStateCommand { - public static final String ARGS = "<mailbox>"; /** @see ImapCommand#getName */ public String getName() { return ImapConstants.SUBSCRIBE_COMMAND_NAME; } - - /** @see CommandTemplate#getArgSyntax */ - public String getArgSyntax() { - return ARGS; - } } Modified: james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/UidCommand.java URL: http://svn.apache.org/viewvc/james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/UidCommand.java?rev=655638&r1=655637&r2=655638&view=diff ============================================================================== --- james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/UidCommand.java (original) +++ james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/UidCommand.java Mon May 12 13:53:15 2008 @@ -21,7 +21,6 @@ import org.apache.james.api.imap.ImapCommand; import org.apache.james.api.imap.ImapConstants; -import org.apache.james.imap.command.CommandTemplate; import org.apache.james.imap.command.SelectedStateCommand; @@ -32,17 +31,9 @@ */ class UidCommand extends SelectedStateCommand { - public static final String ARGS = "<fetch-command>|<store-command>|<copy-command>|<search-command>"; - /** @see ImapCommand#getName */ public String getName() { return ImapConstants.UID_COMMAND_NAME; } - - /** @see CommandTemplate#getArgSyntax */ - public String getArgSyntax() - { - return ARGS; - } } Modified: james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/UnsubscribeCommand.java URL: http://svn.apache.org/viewvc/james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/UnsubscribeCommand.java?rev=655638&r1=655637&r2=655638&view=diff ============================================================================== --- james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/UnsubscribeCommand.java (original) +++ james/server/trunk/imap-command-library/src/main/java/org/apache/james/imap/command/imap4rev1/UnsubscribeCommand.java Mon May 12 13:53:15 2008 @@ -22,7 +22,6 @@ import org.apache.james.api.imap.ImapCommand; import org.apache.james.api.imap.ImapConstants; import org.apache.james.imap.command.AuthenticatedStateCommand; -import org.apache.james.imap.command.CommandTemplate; /** @@ -32,15 +31,8 @@ */ class UnsubscribeCommand extends AuthenticatedStateCommand { - public static final String ARGS = "<mailbox>"; - /** @see ImapCommand#getName */ public String getName() { return ImapConstants.UNSUBSCRIBE_COMMAND_NAME; } - - /** @see CommandTemplate#getArgSyntax */ - public String getArgSyntax() { - return ARGS; - } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
