All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.james.imap.scripts.ConcurrentRenameSelected.test Maven / Gradle / Ivy

There is a newer version: 0.2-M1
Show newest version
################################################################
# 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.                                           #
################################################################
#From RFC2180
#3. Deletion/Renaming of a multi-accessed mailbox
#3.4. The server MAY allow the RENAME of a multi-accessed mailbox by
#     simply changing the name attribute on the mailbox.

SESSION: 1
C: 1a CREATE renameconcurrent
S: 1a OK CREATE completed.

C: 1b APPEND renameconcurrent (\Deleted) {254+}
C: Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
C: From: Fred Foobar 
C: Subject: Test 03
C: To: [email protected]
C: Message-Id: 
C: MIME-Version: 1.0
C: Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
C:
C: Test 03
C:
S: 1b OK APPEND completed.

C: 1c SELECT renameconcurrent
S: \* FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)
S: \* 1 EXISTS
S: \* 1 RECENT
S: \* OK \[UIDVALIDITY \d+\]
S: \* OK \[UNSEEN 1\]
S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
S: \* OK \[UIDNEXT 2\]
S: 1c OK \[READ-WRITE\] SELECT completed.


# Client #1 has mailbox "renameconcurrent" selected. Client #2 RENAMEs the mailbox.
SESSION: 2
C: 2a RENAME renameconcurrent renamed
S: 2a OK RENAME completed.

# Client #1 is still able to do operations that do not reference the mailbox name.
SESSION: 1
C: 1d FETCH 1:* (FLAGS)
S: \* 1 FETCH \(FLAGS \(\\Deleted \\Recent\)\)
S: 1d OK FETCH completed.

# Client #1 is not able to do operations that reference the mailbox name.
C: 1e APPEND renameconcurrent (\Deleted) {254+}
C: Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
C: From: Fred Foobar 
C: Subject: Test 03
C: To: [email protected]
C: Message-Id: 
C: MIME-Version: 1.0
C: Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
C:
C: Test 03
C:
S: 1e NO \[TRYCREATE\] APPEND failed. No such mailbox.

C: A150 DELETE renamed
S: A150 OK DELETE completed\.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy