org.apache.james.imap.scripts.ConcurrentDeleteSelected.test Maven / Gradle / Ivy
################################################################
# 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.3. The server MAY allow the DELETE/RENAME of a multi-accessed
# mailbox, but disconnect all other clients who have the mailbox
# accessed by sending a untagged BYE response.
SESSION: 1
C: 1a CREATE deleteconcurrent
S: 1a OK CREATE completed.
C: 1b APPEND deleteconcurrent (\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 deleteconcurrent
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 "deleteconcurrent" selected. Client #2 DELETEs the mailbox.
SESSION: 2
C: 2a DELETE deleteconcurrent
S: 2a OK DELETE completed.
# Forced disconnect of selected sessions
SESSION: 1
C: 1A NOOP
S: \* BYE Selected mailbox has been deleted