james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r760796 - in /james/imap/trunk: api/src/main/java/org/apache/james/imap/api/ processor/src/main/java/org/apache/james/imap/processor/ seda/src/test/resources/org/apache/james/imap/scripts/
Date Wed, 01 Apr 2009 07:13:40 GMT
Author: rdonkin
Date: Wed Apr  1 07:13:39 2009
New Revision: 760796

URL: http://svn.apache.org/viewvc?rev=760796&view=rev
Log:
Add keyword to CAPABILITY IMAP Namespaces IMAP-76  https://issues.apache.org/jira/browse/IMAP-76

Modified:
    james/imap/trunk/api/src/main/java/org/apache/james/imap/api/ImapConstants.java
    james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/Imap4Rev1ProcessorFactory.java
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Capability.test

Modified: james/imap/trunk/api/src/main/java/org/apache/james/imap/api/ImapConstants.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/api/src/main/java/org/apache/james/imap/api/ImapConstants.java?rev=760796&r1=760795&r2=760796&view=diff
==============================================================================
--- james/imap/trunk/api/src/main/java/org/apache/james/imap/api/ImapConstants.java (original)
+++ james/imap/trunk/api/src/main/java/org/apache/james/imap/api/ImapConstants.java Wed Apr
 1 07:13:39 2009
@@ -98,6 +98,8 @@
     String VERSION = "IMAP4rev1";
 
     String SUPPORTS_LITERAL_PLUS = "LITERAL+";
+    
+    public static final String SUPPORTS_NAMESPACES = "NAMESPACE";
 
     String USER_NAMESPACE = "#mail";
 

Modified: james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/Imap4Rev1ProcessorFactory.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/Imap4Rev1ProcessorFactory.java?rev=760796&r1=760795&r2=760796&view=diff
==============================================================================
--- james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/Imap4Rev1ProcessorFactory.java
(original)
+++ james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/Imap4Rev1ProcessorFactory.java
Wed Apr  1 07:13:39 2009
@@ -20,6 +20,7 @@
 package org.apache.james.imap.processor;
 
 import static org.apache.james.imap.api.ImapConstants.SUPPORTS_LITERAL_PLUS;
+import static org.apache.james.imap.api.ImapConstants.SUPPORTS_NAMESPACES;
 import static org.apache.james.imap.api.ImapConstants.VERSION;
 
 import java.util.ArrayList;
@@ -45,6 +46,7 @@
         final List<String> capabilities = new ArrayList<String>();
         capabilities.add(VERSION);
         capabilities.add(SUPPORTS_LITERAL_PLUS);
+        capabilities.add(SUPPORTS_NAMESPACES);
         final CapabilityProcessor capabilityProcessor = new CapabilityProcessor(
                 logoutProcessor, mailboxManagerProvider, statusResponseFactory, capabilities);
         final CheckProcessor checkProcessor = new CheckProcessor(

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Capability.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Capability.test?rev=760796&r1=760795&r2=760796&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Capability.test
(original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Capability.test
Wed Apr  1 07:13:39 2009
@@ -17,7 +17,7 @@
 # under the License.                                           #
 ################################################################
 C: abcd CAPABILITY
-S: \* CAPABILITY IMAP4rev1 LITERAL\+
+S: \* CAPABILITY IMAP4rev1 LITERAL\+ NAMESPACE
 S: abcd OK CAPABILITY completed.
 
 C: abcd CAPABILITY extra stuff



---------------------------------------------------------------------
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