Author: btellier Date: Fri Jun 26 16:24:44 2015 New Revision: 1687807 URL: http://svn.apache.org/r1687807 Log: MPT-14 ACL integration tests : COPY
Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyI.test james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIS.test james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIT.test james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIW.test james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutI.test james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutS.test james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutT.test james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutW.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=1687807&r1=1687806&r2=1687807&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:24:44 2015 @@ -24,7 +24,6 @@ import org.apache.james.mailbox.model.Si 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; @@ -34,7 +33,9 @@ import java.util.Locale; public class ACLIntegration extends BaseImapProtocol { public static final String OTHER_USER_NAME = "Boby"; public static final String OTHER_USER_PASSWORD = "password"; - public static final MailboxPath OTHER_USER_MAILBOX = new MailboxPath("#prinvate", OTHER_USER_NAME, ""); + public static final MailboxPath OTHER_USER_MAILBOX = new MailboxPath("#private", OTHER_USER_NAME, ""); + public static final MailboxPath MY_INBOX = new MailboxPath("#private", USER, ""); + @Inject private static ImapHostSystem system; @Inject @@ -203,4 +204,60 @@ public class ACLIntegration extends Base mailboxMessageAppender.fillMailbox(OTHER_USER_MAILBOX); scriptTest("aclIntegration/ACLIntegrationWithoutRightT", Locale.US); } + + @Test + public void rightIShouldBeSufficientToPerformCopyUS() throws Exception { + grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("i")); + mailboxMessageAppender.fillMailbox(MY_INBOX); + scriptTest("aclIntegration/ACLIntegrationCopyI", Locale.US); + } + + @Test + public void rightIShouldBeNeededToPerformCopyUS() throws Exception { + grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("rswpxtcdlake")); + mailboxMessageAppender.fillMailbox(MY_INBOX); + scriptTest("aclIntegration/ACLIntegrationCopyWithoutI", Locale.US); + } + + @Test + public void rightIShouldBeSufficientToPerformOfSeenMessagesCopyUS() throws Exception { + grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("ris")); + mailboxMessageAppender.fillMailbox(MY_INBOX); + scriptTest("aclIntegration/ACLIntegrationCopyIS", Locale.US); + } + + @Test + public void rightSShouldBeNeededToPerformCopyOfSeenMessageUS() throws Exception { + grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("riwpxtcdlake")); + mailboxMessageAppender.fillMailbox(MY_INBOX); + scriptTest("aclIntegration/ACLIntegrationCopyWithoutS", Locale.US); + } + + @Test + public void rightIWShouldBeSufficientToPerformOfFlaggedMessagesCopyUS() throws Exception { + grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("riw")); + mailboxMessageAppender.fillMailbox(MY_INBOX); + scriptTest("aclIntegration/ACLIntegrationCopyIW", Locale.US); + } + + @Test + public void rightWShouldBeNeededToPerformCopyOfFlaggedMessageUS() throws Exception { + grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("rispxtcdlake")); + mailboxMessageAppender.fillMailbox(MY_INBOX); + scriptTest("aclIntegration/ACLIntegrationCopyWithoutW", Locale.US); + } + + @Test + public void rightITShouldBeSufficientToPerformOfDeletedMessagesCopyUS() throws Exception { + grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("rit")); + mailboxMessageAppender.fillMailbox(MY_INBOX); + scriptTest("aclIntegration/ACLIntegrationCopyIT", Locale.US); + } + + @Test + public void rightTShouldBeNeededToPerformCopyOfDeletedMessageUS() throws Exception { + grantRightsOnHost.grantRights(OTHER_USER_MAILBOX, USER, new SimpleMailboxACL.Rfc4314Rights("rispxwlake")); + mailboxMessageAppender.fillMailbox(MY_INBOX); + scriptTest("aclIntegration/ACLIntegrationCopyWithoutT", Locale.US); + } } Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyI.test URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyI.test?rev=1687807&view=auto ============================================================================== --- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyI.test (added) +++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyI.test Fri Jun 26 16:24:44 2015 @@ -0,0 +1,52 @@ +################################################################ +# 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 i +S: a001 OK Completed + +C: a002 SELECT user.imapuser +S: \* 4 EXISTS +S: \* 4 RECENT +S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\) +S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen \\\*\)\] Ok +S: \* OK \[UNSEEN 1\] Ok +S: \* OK \[UIDVALIDITY .* +S: \* OK \[UIDNEXT 5\] Ok +S: \* OK \[HIGHESTMODSEQ 6\] 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 COPY 1:1 user.Boby +S: a004 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/ACLIntegrationCopyIS.test URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIS.test?rev=1687807&view=auto ============================================================================== --- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIS.test (added) +++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIS.test Fri Jun 26 16:24:44 2015 @@ -0,0 +1,63 @@ +################################################################ +# 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 rsi +S: a001 OK Completed + +C: a002 SELECT user.imapuser +S: \* 4 EXISTS +S: \* 4 RECENT +S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\) +S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen \\\*\)\] Ok +S: \* OK \[UNSEEN 1\] Ok +S: \* OK \[UIDVALIDITY .* +S: \* OK \[UIDNEXT 5\] Ok +S: \* OK \[HIGHESTMODSEQ 6\] Ok +S: \* OK \[URLMECH INTERNAL\] Ok +S: a002 OK \[READ-WRITE\] Completed + +C: a003 STORE 2:2 +FLAGS (\Seen) +S: \* 2 FETCH \(FLAGS \(\\Recent \\Seen\)\) +S: a003 OK Completed + +C: a004 COPY 2:2 user.Boby +S: a004 OK \[COPYUID .* 2 1\] Completed + +C: a005 CLOSE +S: a005 OK Completed + +# Check that we have one seen message in destination +C: a006 SELECT user.Boby +S: \* 1 EXISTS +S: \* 1 RECENT +S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\) +S: \* OK \[PERMANENTFLAGS \(\\Seen\)\] Ok +S: \* OK \[UIDVALIDITY .* +S: \* OK \[UIDNEXT 2\] Ok +S: \* OK \[HIGHESTMODSEQ 3\] Ok +S: \* OK \[URLMECH INTERNAL\] Ok +S: a006 OK \[READ-WRITE\] Completed + +C: a007 CLOSE +S: a007 OK Completed \ No newline at end of file Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIT.test URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIT.test?rev=1687807&view=auto ============================================================================== --- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIT.test (added) +++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIT.test Fri Jun 26 16:24:44 2015 @@ -0,0 +1,64 @@ +################################################################ +# 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 ritd +S: a001 OK Completed + +C: a002 SELECT user.imapuser +S: \* 4 EXISTS +S: \* 4 RECENT +S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\) +S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen \\\*\)\] Ok +S: \* OK \[UNSEEN 1\] Ok +S: \* OK \[UIDVALIDITY .* +S: \* OK \[UIDNEXT 5\] Ok +S: \* OK \[HIGHESTMODSEQ 6\] Ok +S: \* OK \[URLMECH INTERNAL\] Ok +S: a002 OK \[READ-WRITE\] Completed + +C: a003 COPY 4:4 user.Boby +S: a003 OK \[COPYUID .* 4 1\] Completed + +C: a005 CLOSE +S: a005 OK Completed + +# Check that we have one seen message in destination +C: a006 SELECT user.Boby +S: \* 1 EXISTS +S: \* 1 RECENT +S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\) +S: \* OK \[PERMANENTFLAGS \(\\Deleted\)\] Ok +S: \* OK \[UNSEEN 1\] Ok +S: \* OK \[UIDVALIDITY .* +S: \* OK \[UIDNEXT 2\] Ok +S: \* OK \[HIGHESTMODSEQ 3\] Ok +S: \* OK \[URLMECH INTERNAL\] Ok +S: a006 OK \[READ-WRITE\] Completed + +C: a007 FETCH 1:1 (FLAGS) +S: \* 1 FETCH \(FLAGS \(\\Recent \\Deleted\)\) +S: a007 OK Completed.* + +C: a008 CLOSE +S: a008 OK Completed \ No newline at end of file Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIW.test URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIW.test?rev=1687807&view=auto ============================================================================== --- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIW.test (added) +++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyIW.test Fri Jun 26 16:24:44 2015 @@ -0,0 +1,64 @@ +################################################################ +# 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 rwi +S: a001 OK Completed + +C: a002 SELECT user.imapuser +S: \* 4 EXISTS +S: \* 4 RECENT +S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\) +S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen \\\*\)\] Ok +S: \* OK \[UNSEEN 1\] Ok +S: \* OK \[UIDVALIDITY .* +S: \* OK \[UIDNEXT 5\] Ok +S: \* OK \[HIGHESTMODSEQ 6\] Ok +S: \* OK \[URLMECH INTERNAL\] Ok +S: a002 OK \[READ-WRITE\] Completed + +C: a003 COPY 3:3 user.Boby +S: a003 OK \[COPYUID .* 3 1\] Completed + +C: a004 CLOSE +S: a004 OK Completed + +# Check that we have one seen message in destination +C: a005 SELECT user.Boby +S: \* 1 EXISTS +S: \* 1 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 2\] Ok +S: \* OK \[HIGHESTMODSEQ 3\] Ok +S: \* OK \[URLMECH INTERNAL\] Ok +S: a005 OK \[READ-WRITE\] Completed + +C: a006 FETCH 1:1 (FLAGS) +S: \* 1 FETCH \(FLAGS \(\\Recent \\Flagged\)\) +S: a006 OK Completed.* + +C: a007 CLOSE +S: a007 OK Completed \ No newline at end of file Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutI.test URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutI.test?rev=1687807&view=auto ============================================================================== --- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutI.test (added) +++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutI.test Fri Jun 26 16:24:44 2015 @@ -0,0 +1,52 @@ +################################################################ +# 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 lrswpkxtecda +S: a001 OK Completed + +C: a002 SELECT user.imapuser +S: \* 4 EXISTS +S: \* 4 RECENT +S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\) +S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen \\\*\)\] Ok +S: \* OK \[UNSEEN 1\] Ok +S: \* OK \[UIDVALIDITY .* +S: \* OK \[UIDNEXT 5\] Ok +S: \* OK \[HIGHESTMODSEQ 6\] 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 COPY 1:1 user.Boby +S: a004 NO Permission denied + +C: a008 CLOSE +S: a008 OK Completed + Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutS.test URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutS.test?rev=1687807&view=auto ============================================================================== --- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutS.test (added) +++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutS.test Fri Jun 26 16:24:44 2015 @@ -0,0 +1,68 @@ +################################################################ +# 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.imapuser +S: \* 4 EXISTS +S: \* 4 RECENT +S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\) +S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen \\\*\)\] Ok +S: \* OK \[UNSEEN 1\] Ok +S: \* OK \[UIDVALIDITY .* +S: \* OK \[UIDNEXT 5\] Ok +S: \* OK \[HIGHESTMODSEQ 6\] Ok +S: \* OK \[URLMECH INTERNAL\] Ok +S: a002 OK \[READ-WRITE\] Completed + +C: a003 STORE 2:2 +FLAGS (\Seen) +S: \* 2 FETCH \(FLAGS \(\\Recent \\Seen\)\) +S: a003 OK Completed + +C: a004 COPY 2:2 user.Boby +S: a004 OK \[COPYUID .* 2 1\] Completed + +C: a005 CLOSE +S: a005 OK Completed + +# Check that we have one seen message in destination +C: a006 SELECT user.Boby +S: \* 1 EXISTS +S: \* 1 RECENT +S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\) +S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\\*\)\] Ok +S: \* OK \[UIDVALIDITY .* +S: \* OK \[UIDNEXT 2\] Ok +S: \* OK \[HIGHESTMODSEQ 3\] Ok +S: \* OK \[URLMECH INTERNAL\] Ok +S: a006 OK \[READ-WRITE\] Completed + +# Not RFC compliant +C: a007 FETCH 1:1 (FLAGS) +S: \* 1 FETCH \(FLAGS \(\\Recent \\Seen\)\) +S: a007 OK Completed.* + +C: a008 CLOSE +S: a008 OK Completed \ No newline at end of file Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutT.test URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutT.test?rev=1687807&view=auto ============================================================================== --- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutT.test (added) +++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutT.test Fri Jun 26 16:24:44 2015 @@ -0,0 +1,64 @@ +################################################################ +# 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.imapuser +S: \* 4 EXISTS +S: \* 4 RECENT +S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\) +S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen \\\*\)\] Ok +S: \* OK \[UNSEEN 1\] Ok +S: \* OK \[UIDVALIDITY .* +S: \* OK \[UIDNEXT 5\] Ok +S: \* OK \[HIGHESTMODSEQ 6\] Ok +S: \* OK \[URLMECH INTERNAL\] Ok +S: a002 OK \[READ-WRITE\] Completed + +C: a004 COPY 4:4 user.Boby +S: a004 OK \[COPYUID .* 4 1\] Completed + +C: a005 CLOSE +S: a005 OK Completed + +# Check that we have one seen message in destination +C: a006 SELECT user.Boby +S: \* 1 EXISTS +S: \* 1 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 2\] Ok +S: \* OK \[HIGHESTMODSEQ 3\] Ok +S: \* OK \[URLMECH INTERNAL\] Ok +S: a006 OK \[READ-WRITE\] Completed + +C: a007 FETCH 1:1 (FLAGS) +S: \* 1 FETCH \(FLAGS \(\\Recent\)\) +S: a007 OK Completed.* + +C: a008 CLOSE +S: a008 OK Completed \ No newline at end of file Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutW.test URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutW.test?rev=1687807&view=auto ============================================================================== --- james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutW.test (added) +++ james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/aclIntegration/ACLIntegrationCopyWithoutW.test Fri Jun 26 16:24:44 2015 @@ -0,0 +1,64 @@ +################################################################ +# 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.imapuser +S: \* 4 EXISTS +S: \* 4 RECENT +S: \* FLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen\) +S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Draft \\Deleted \\Seen \\\*\)\] Ok +S: \* OK \[UNSEEN 1\] Ok +S: \* OK \[UIDVALIDITY .* +S: \* OK \[UIDNEXT 5\] Ok +S: \* OK \[HIGHESTMODSEQ 6\] Ok +S: \* OK \[URLMECH INTERNAL\] Ok +S: a002 OK \[READ-WRITE\] Completed + +C: a004 COPY 3:3 user.Boby +S: a004 OK \[COPYUID .* 3 1\] Completed + +C: a005 CLOSE +S: a005 OK Completed + +# Check that we have one seen message in destination +C: a006 SELECT user.Boby +S: \* 1 EXISTS +S: \* 1 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 2\] Ok +S: \* OK \[HIGHESTMODSEQ 3\] Ok +S: \* OK \[URLMECH INTERNAL\] Ok +S: a006 OK \[READ-WRITE\] Completed + +C: a007 FETCH 1:1 (FLAGS) +S: \* 1 FETCH \(FLAGS \(\\Recent\)\) +S: a007 OK Completed.* + +C: a008 CLOSE +S: a008 OK Completed \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org