james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject svn commit: r1687806 - in /james/mpt/trunk/impl/imap-mailbox/core/src/main: java/org/apache/james/mpt/imapmailbox/suite/ resources/org/apache/james/imap/scripts/aclIntegration/
Date Fri, 26 Jun 2015 16:23:51 GMT
Author: btellier
Date: Fri Jun 26 16:23:50 2015
New Revision: 1687806

URL: http://svn.apache.org/r1687806
Log:
MPT-14 ACL integration tests : STORE

Added:
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRS.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRT.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRW.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightS.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightT.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightW.test
Modified:
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/ACLIntegration.java

Modified: james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/ACLIntegration.java
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/ACLIntegration.java?rev=1687806&r1=1687805&r2=1687806&view=diff
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/ACLIntegration.java
(original)
+++ james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/ACLIntegration.java
Fri Jun 26 16:23:50 2015
@@ -23,6 +23,8 @@ import org.apache.james.mailbox.model.Ma
 import org.apache.james.mailbox.model.SimpleMailboxACL;
 import org.apache.james.mpt.api.ImapHostSystem;
 import org.apache.james.mpt.imapmailbox.GrantRightsOnHost;
+import org.apache.james.mpt.imapmailbox.MailboxMessageAppender;
+import org.apache.james.mpt.imapmailbox.MailboxMessageProvider;
 import org.apache.james.mpt.imapmailbox.suite.base.BaseImapProtocol;
 import org.junit.Test;
 
@@ -37,6 +39,8 @@ public class ACLIntegration extends Base
     private static ImapHostSystem system;
     @Inject
     private GrantRightsOnHost grantRightsOnHost;
+    @Inject
+    private MailboxMessageAppender mailboxMessageAppender;
 
     public ACLIntegration() throws Exception {
         super(system);
@@ -158,4 +162,45 @@ public class ACLIntegration extends Base
         scriptTest("aclIntegration/ACLIntegrationRightIW", Locale.US);
     }
 
+    @Test
+    public void rightRSShouldBeSufficientToPerformStoreAndFetchOnSeenMessageUS() throws Exception
{
+        grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("rs"));
+        mailboxMessageAppender.fillMailbox(OTHER_USER_MAILBOX);
+        scriptTest("aclIntegration/ACLIntegrationRightRS", Locale.US);
+    }
+
+    @Test
+    public void rightSShouldBeNeededToPerformStoreAndFetchOnSeenMessageUS() throws Exception
{
+        grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("rwipxtcdlake"));
+        mailboxMessageAppender.fillMailbox(OTHER_USER_MAILBOX);
+        scriptTest("aclIntegration/ACLIntegrationWithoutRightS", Locale.US);
+    }
+
+    @Test
+    public void rightRWShouldBeSufficientToPerformStoreOnFlaggedMessageUS() throws Exception
{
+        grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("rw"));
+        mailboxMessageAppender.fillMailbox(OTHER_USER_MAILBOX);
+        scriptTest("aclIntegration/ACLIntegrationRightRW", Locale.US);
+    }
+
+    @Test
+    public void rightWShouldBeNeededToPerformStoreOnFlaggedMessageUS() throws Exception {
+        grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("rsipxtcdlake"));
+        mailboxMessageAppender.fillMailbox(OTHER_USER_MAILBOX);
+        scriptTest("aclIntegration/ACLIntegrationWithoutRightW", Locale.US);
+    }
+
+    @Test
+    public void rightRTShouldBeSufficientToPerformStoreOnDeletedMessageUS() throws Exception
{
+        grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("rt"));
+        mailboxMessageAppender.fillMailbox(OTHER_USER_MAILBOX);
+        scriptTest("aclIntegration/ACLIntegrationRightRT", Locale.US);
+    }
+
+    @Test
+    public void rightTShouldBeNeededToPerformStoreOnFlaggedMessageUS() throws Exception {
+        grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("rwipxslake"));
+        mailboxMessageAppender.fillMailbox(OTHER_USER_MAILBOX);
+        scriptTest("aclIntegration/ACLIntegrationWithoutRightT", Locale.US);
+    }
 }

Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRS.test
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRS.test?rev=1687806&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRS.test
(added)
+++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRS.test
Fri Jun 26 16:23:50 2015
@@ -0,0 +1,66 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one   #
+# or more contributor license agreements.  See the NOTICE file #
+# distributed with this work for additional information        #
+# regarding copyright ownership.  The ASF licenses this file   #
+# to you under the Apache License, Version 2.0 (the            #
+# "License"); you may not use this file except in compliance   #
+# with the License.  You may obtain a copy of the License at   #
+#                                                              #
+#   http://www.apache.org/licenses/LICENSE-2.0                 #
+#                                                              #
+# Unless required by applicable law or agreed to in writing,   #
+# software distributed under the License is distributed on an  #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       #
+# KIND, either express or implied.  See the License for the    #
+# specific language governing permissions and limitations      #
+# under the License.                                           #
+################################################################
+
+C: a000 LOGIN imapuser password
+S: \* OK IMAP4rev1 Server ready
+S: a000 OK .*
+
+C: a001 MYRIGHTS user.Boby
+S: \* MYRIGHTS user.Boby rs
+S: a001 OK Completed
+
+C: a002 SELECT user.Boby
+S: \* 4 EXISTS
+S: \* 4 RECENT
+S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\)
+S: \* OK \[PERMANENTFLAGS \(\\Seen\)\] Ok
+S: \* OK \[UNSEEN 1\] Ok
+S: \* OK \[UIDVALIDITY .*
+S: \* OK \[UIDNEXT 5\] Ok
+S: \* OK \[HIGHESTMODSEQ 7\] Ok
+S: \* OK \[URLMECH INTERNAL\] Ok
+S: a002 OK \[READ-WRITE\] Completed
+
+C: a003 FETCH 1:4 (FLAGS)
+S: \* 1 FETCH \(FLAGS \(\\Recent\)\)
+S: \* 2 FETCH \(FLAGS \(\\Recent\)\)
+S: \* 3 FETCH \(FLAGS \(\\Recent \\Flagged\)\)
+S: \* 4 FETCH \(FLAGS \(\\Recent \\Deleted\)\)
+S: a003 OK Completed.*
+
+C: a004 STORE 1:2 +FLAGS (\Seen)
+S: \* 1 FETCH \(FLAGS \(\\Recent \\Seen\)\)
+S: \* 2 FETCH \(FLAGS \(\\Recent \\Seen\)\)
+S: a004 OK Completed
+
+C: a005 STORE 1:1 -FLAGS (\Seen)
+S: \* 1 FETCH \(FLAGS \(\\Recent\)\)
+S: a005 OK Completed
+
+C: a006 STORE 1:1 FLAGS (\Seen)
+S: \* 1 FETCH \(FLAGS \(\\Recent \\Seen\)\)
+S: a006 OK Completed
+
+C: a007 STORE 1:1 FLAGS ()
+S: \* 1 FETCH \(FLAGS \(\\Recent\)\)
+S: a007 OK Completed
+
+C: a008 CLOSE
+S: a008 OK Completed
+

Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRT.test
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRT.test?rev=1687806&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRT.test
(added)
+++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRT.test
Fri Jun 26 16:23:50 2015
@@ -0,0 +1,66 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one   #
+# or more contributor license agreements.  See the NOTICE file #
+# distributed with this work for additional information        #
+# regarding copyright ownership.  The ASF licenses this file   #
+# to you under the Apache License, Version 2.0 (the            #
+# "License"); you may not use this file except in compliance   #
+# with the License.  You may obtain a copy of the License at   #
+#                                                              #
+#   http://www.apache.org/licenses/LICENSE-2.0                 #
+#                                                              #
+# Unless required by applicable law or agreed to in writing,   #
+# software distributed under the License is distributed on an  #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       #
+# KIND, either express or implied.  See the License for the    #
+# specific language governing permissions and limitations      #
+# under the License.                                           #
+################################################################
+
+C: a000 LOGIN imapuser password
+S: \* OK IMAP4rev1 Server ready
+S: a000 OK .*
+
+C: a001 MYRIGHTS user.Boby
+S: \* MYRIGHTS user.Boby rtd
+S: a001 OK Completed
+
+C: a002 SELECT user.Boby
+S: \* 4 EXISTS
+S: \* 4 RECENT
+S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\)
+S: \* OK \[PERMANENTFLAGS \(\\Deleted\)\] Ok
+S: \* OK \[UNSEEN 1\] Ok
+S: \* OK \[UIDVALIDITY .*
+S: \* OK \[UIDNEXT 5\] Ok
+S: \* OK \[HIGHESTMODSEQ 7\] Ok
+S: \* OK \[URLMECH INTERNAL\] Ok
+S: a002 OK \[READ-WRITE\] Completed
+
+C: a003 FETCH 1:4 (FLAGS)
+S: \* 1 FETCH \(FLAGS \(\\Recent\)\)
+S: \* 2 FETCH \(FLAGS \(\\Recent\)\)
+S: \* 3 FETCH \(FLAGS \(\\Recent \\Flagged\)\)
+S: \* 4 FETCH \(FLAGS \(\\Recent \\Deleted\)\)
+S: a003 OK Completed.*
+
+C: a004 STORE 1:2 +FLAGS (\Deleted)
+S: \* 1 FETCH \(FLAGS \(\\Recent \\Deleted\)\)
+S: \* 2 FETCH \(FLAGS \(\\Recent \\Deleted\)\)
+S: a004 OK Completed
+
+C: a005 STORE 1:1 -FLAGS (\Deleted)
+S: \* 1 FETCH \(FLAGS \(\\Recent\)\)
+S: a005 OK Completed
+
+C: a006 STORE 1:1 FLAGS (\Deleted)
+S: \* 1 FETCH \(FLAGS \(\\Recent \\Deleted\)\)
+S: a006 OK Completed
+
+C: a007 STORE 1:1 FLAGS ()
+S: \* 1 FETCH \(FLAGS \(\\Recent\)\)
+S: a007 OK Completed
+
+C: a008 CLOSE
+S: a008 OK Completed
+

Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRW.test
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRW.test?rev=1687806&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRW.test
(added)
+++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationRightRW.test
Fri Jun 26 16:23:50 2015
@@ -0,0 +1,66 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one   #
+# or more contributor license agreements.  See the NOTICE file #
+# distributed with this work for additional information        #
+# regarding copyright ownership.  The ASF licenses this file   #
+# to you under the Apache License, Version 2.0 (the            #
+# "License"); you may not use this file except in compliance   #
+# with the License.  You may obtain a copy of the License at   #
+#                                                              #
+#   http://www.apache.org/licenses/LICENSE-2.0                 #
+#                                                              #
+# Unless required by applicable law or agreed to in writing,   #
+# software distributed under the License is distributed on an  #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       #
+# KIND, either express or implied.  See the License for the    #
+# specific language governing permissions and limitations      #
+# under the License.                                           #
+################################################################
+
+C: a000 LOGIN imapuser password
+S: \* OK IMAP4rev1 Server ready
+S: a000 OK .*
+
+C: a001 MYRIGHTS user.Boby
+S: \* MYRIGHTS user.Boby rw
+S: a001 OK Completed
+
+C: a002 SELECT user.Boby
+S: \* 4 EXISTS
+S: \* 4 RECENT
+S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\)
+S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Draft .\*\)\] Ok
+S: \* OK \[UNSEEN 1\] Ok
+S: \* OK \[UIDVALIDITY .*
+S: \* OK \[UIDNEXT 5\] Ok
+S: \* OK \[HIGHESTMODSEQ 7\] Ok
+S: \* OK \[URLMECH INTERNAL\] Ok
+S: a002 OK \[READ-WRITE\] Completed
+
+C: a003 FETCH 1:4 (FLAGS)
+S: \* 1 FETCH \(FLAGS \(\\Recent\)\)
+S: \* 2 FETCH \(FLAGS \(\\Recent\)\)
+S: \* 3 FETCH \(FLAGS \(\\Recent \\Flagged\)\)
+S: \* 4 FETCH \(FLAGS \(\\Recent \\Deleted\)\)
+S: a003 OK Completed.*
+
+C: a004 STORE 1:2 +FLAGS (\Draft)
+S: \* 1 FETCH \(FLAGS \(\\Recent \\Draft\)\)
+S: \* 2 FETCH \(FLAGS \(\\Recent \\Draft\)\)
+S: a004 OK Completed
+
+C: a005 STORE 3:3 -FLAGS (\Flagged)
+S: \* 3 FETCH \(FLAGS \(\\Recent\)\)
+S: a005 OK Completed
+
+C: a006 STORE 1:1 FLAGS (\Answered)
+S: \* 1 FETCH \(FLAGS \(\\Recent \\Answered\)\)
+S: a006 OK Completed
+
+C: a007 STORE 1:1 FLAGS ()
+S: \* 1 FETCH \(FLAGS \(\\Recent\)\)
+S: a007 OK Completed
+
+C: a008 CLOSE
+S: a008 OK Completed
+

Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightS.test
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightS.test?rev=1687806&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightS.test
(added)
+++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightS.test
Fri Jun 26 16:23:50 2015
@@ -0,0 +1,62 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one   #
+# or more contributor license agreements.  See the NOTICE file #
+# distributed with this work for additional information        #
+# regarding copyright ownership.  The ASF licenses this file   #
+# to you under the Apache License, Version 2.0 (the            #
+# "License"); you may not use this file except in compliance   #
+# with the License.  You may obtain a copy of the License at   #
+#                                                              #
+#   http://www.apache.org/licenses/LICENSE-2.0                 #
+#                                                              #
+# Unless required by applicable law or agreed to in writing,   #
+# software distributed under the License is distributed on an  #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       #
+# KIND, either express or implied.  See the License for the    #
+# specific language governing permissions and limitations      #
+# under the License.                                           #
+################################################################
+
+C: a000 LOGIN imapuser password
+S: \* OK IMAP4rev1 Server ready
+S: a000 OK .*
+
+C: a001 MYRIGHTS user.Boby
+S: \* MYRIGHTS user.Boby lrwipkxtecda
+S: a001 OK Completed
+
+C: a002 SELECT user.Boby
+S: \* 4 EXISTS
+S: \* 4 RECENT
+S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\)
+S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\\*\)\] Ok
+S: \* OK \[UNSEEN 1\] Ok
+S: \* OK \[UIDVALIDITY .*
+S: \* OK \[UIDNEXT 5\] Ok
+S: \* OK \[HIGHESTMODSEQ 7\] Ok
+S: \* OK \[URLMECH INTERNAL\] Ok
+S: a002 OK \[READ-WRITE\] Completed
+
+C: a003 FETCH 1:4 (FLAGS)
+S: \* 1 FETCH \(FLAGS \(\\Recent\)\)
+S: \* 2 FETCH \(FLAGS \(\\Recent\)\)
+S: \* 3 FETCH \(FLAGS \(\\Recent \\Flagged\)\)
+S: \* 4 FETCH \(FLAGS \(\\Recent \\Deleted\)\)
+S: a003 OK Completed.*
+
+# Not RFC compliant
+C: a004 STORE 1:2 +FLAGS (\Seen)
+S: a004 NO Permission denied
+
+C: a005 STORE 1:1 -FLAGS (\Seen)
+S: a005 NO Permission denied
+
+C: a006 STORE 1:1 FLAGS (\Seen)
+S: a006 NO Permission denied
+
+C: a007 STORE 1:1 FLAGS ()
+S: a007 OK Completed
+
+C: a008 CLOSE
+S: a008 OK Completed
+

Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightT.test
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightT.test?rev=1687806&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightT.test
(added)
+++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightT.test
Fri Jun 26 16:23:50 2015
@@ -0,0 +1,62 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one   #
+# or more contributor license agreements.  See the NOTICE file #
+# distributed with this work for additional information        #
+# regarding copyright ownership.  The ASF licenses this file   #
+# to you under the Apache License, Version 2.0 (the            #
+# "License"); you may not use this file except in compliance   #
+# with the License.  You may obtain a copy of the License at   #
+#                                                              #
+#   http://www.apache.org/licenses/LICENSE-2.0                 #
+#                                                              #
+# Unless required by applicable law or agreed to in writing,   #
+# software distributed under the License is distributed on an  #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       #
+# KIND, either express or implied.  See the License for the    #
+# specific language governing permissions and limitations      #
+# under the License.                                           #
+################################################################
+
+C: a000 LOGIN imapuser password
+S: \* OK IMAP4rev1 Server ready
+S: a000 OK .*
+
+C: a001 MYRIGHTS user.Boby
+S: \* MYRIGHTS user.Boby lrswipkxecda
+S: a001 OK Completed
+
+C: a002 SELECT user.Boby
+S: \* 4 EXISTS
+S: \* 4 RECENT
+S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\)
+S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Draft \\Seen \\\*\)\] Ok
+S: \* OK \[UNSEEN 1\] Ok
+S: \* OK \[UIDVALIDITY .*
+S: \* OK \[UIDNEXT 5\] Ok
+S: \* OK \[HIGHESTMODSEQ 7\] Ok
+S: \* OK \[URLMECH INTERNAL\] Ok
+S: a002 OK \[READ-WRITE\] Completed
+
+C: a003 FETCH 1:4 (FLAGS)
+S: \* 1 FETCH \(FLAGS \(\\Recent\)\)
+S: \* 2 FETCH \(FLAGS \(\\Recent\)\)
+S: \* 3 FETCH \(FLAGS \(\\Recent \\Flagged\)\)
+S: \* 4 FETCH \(FLAGS \(\\Recent \\Deleted\)\)
+S: a003 OK Completed.*
+
+# Not RFC compliant
+C: a004 STORE 1:2 +FLAGS (\Deleted)
+S: a004 NO Permission denied
+
+C: a005 STORE 4:4 -FLAGS (\Deleted)
+S: a005 NO Permission denied
+
+C: a006 STORE 1:1 FLAGS (\Deleted)
+S: a006 NO Permission denied
+
+C: a007 STORE 4:4 FLAGS ()
+S: a007 OK Completed
+
+C: a008 CLOSE
+S: a008 OK Completed
+

Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightW.test
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightW.test?rev=1687806&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightW.test
(added)
+++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationWithoutRightW.test
Fri Jun 26 16:23:50 2015
@@ -0,0 +1,62 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one   #
+# or more contributor license agreements.  See the NOTICE file #
+# distributed with this work for additional information        #
+# regarding copyright ownership.  The ASF licenses this file   #
+# to you under the Apache License, Version 2.0 (the            #
+# "License"); you may not use this file except in compliance   #
+# with the License.  You may obtain a copy of the License at   #
+#                                                              #
+#   http://www.apache.org/licenses/LICENSE-2.0                 #
+#                                                              #
+# Unless required by applicable law or agreed to in writing,   #
+# software distributed under the License is distributed on an  #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       #
+# KIND, either express or implied.  See the License for the    #
+# specific language governing permissions and limitations      #
+# under the License.                                           #
+################################################################
+
+C: a000 LOGIN imapuser password
+S: \* OK IMAP4rev1 Server ready
+S: a000 OK .*
+
+C: a001 MYRIGHTS user.Boby
+S: \* MYRIGHTS user.Boby lrsipkxtecda
+S: a001 OK Completed
+
+C: a002 SELECT user.Boby
+S: \* 4 EXISTS
+S: \* 4 RECENT
+S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\)
+S: \* OK \[PERMANENTFLAGS \(\\Deleted \\Seen\)\] Ok
+S: \* OK \[UNSEEN 1\] Ok
+S: \* OK \[UIDVALIDITY .*
+S: \* OK \[UIDNEXT 5\] Ok
+S: \* OK \[HIGHESTMODSEQ 7\] Ok
+S: \* OK \[URLMECH INTERNAL\] Ok
+S: a002 OK \[READ-WRITE\] Completed
+
+C: a003 FETCH 1:4 (FLAGS)
+S: \* 1 FETCH \(FLAGS \(\\Recent\)\)
+S: \* 2 FETCH \(FLAGS \(\\Recent\)\)
+S: \* 3 FETCH \(FLAGS \(\\Recent \\Flagged\)\)
+S: \* 4 FETCH \(FLAGS \(\\Recent \\Deleted\)\)
+S: a003 OK Completed.*
+
+# Not RFC compliant
+C: a004 STORE 1:2 +FLAGS (\Answered)
+S: a004 NO Permission denied
+
+C: a005 STORE 3:3 -FLAGS (\Flagged)
+S: a005 NO Permission denied
+
+C: a006 STORE 1:1 FLAGS (\Draft)
+S: a006 NO Permission denied
+
+C: a007 STORE 3:3 FLAGS ()
+S: a007 OK Completed
+
+C: a008 CLOSE
+S: a008 OK Completed
+



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