james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1147191 - /james/imap/trunk/message/src/main/java/org/apache/james/imap/encode/EnableResponseEncoder.java
Date Fri, 15 Jul 2011 15:26:37 GMT
Author: norman
Date: Fri Jul 15 15:26:36 2011
New Revision: 1147191

URL: http://svn.apache.org/viewvc?rev=1147191&view=rev
Log:
Make sure we use the right response if a client issue the ENABLE command. See IMAP-323

Modified:
    james/imap/trunk/message/src/main/java/org/apache/james/imap/encode/EnableResponseEncoder.java

Modified: james/imap/trunk/message/src/main/java/org/apache/james/imap/encode/EnableResponseEncoder.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/message/src/main/java/org/apache/james/imap/encode/EnableResponseEncoder.java?rev=1147191&r1=1147190&r2=1147191&view=diff
==============================================================================
--- james/imap/trunk/message/src/main/java/org/apache/james/imap/encode/EnableResponseEncoder.java
(original)
+++ james/imap/trunk/message/src/main/java/org/apache/james/imap/encode/EnableResponseEncoder.java
Fri Jul 15 15:26:36 2011
@@ -19,9 +19,8 @@
 package org.apache.james.imap.encode;
 
 import java.io.IOException;
-import java.util.List;
+import java.util.Set;
 
-import org.apache.james.imap.api.ImapConstants;
 import org.apache.james.imap.api.ImapMessage;
 import org.apache.james.imap.api.process.ImapSession;
 import org.apache.james.imap.encode.base.AbstractChainedImapEncoder;
@@ -47,9 +46,10 @@ public class EnableResponseEncoder exten
      */
     protected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer,
ImapSession session) throws IOException {
         final EnableResponse response = (EnableResponse) acceptableMessage;
-        List<String> capabilities = response.getCapabilities();
+        Set<String> capabilities = response.getCapabilities();
         composer.untagged();
-        composer.message(ImapConstants.ENABLE_COMMAND_NAME);
+        // Return ENABLED capabilities. See IMAP-323
+        composer.message("ENABLED");
         for (String capability : capabilities) {
             composer.message(capability);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message