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

org.apache.james.imap.scripts.ConcurrentExpungeResponse.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.                                           #
################################################################
SESSION: 1
C: 1a CREATE expungeresponse
S: 1a OK CREATE completed.

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

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

C: 1c APPEND expungeresponse (\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: 1c OK APPEND completed.

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

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

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

SESSION: 3
C: 3a SELECT expungeresponse
S: \* FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)
S: \* 4 EXISTS
S: \* 0 RECENT
S: \* OK \[UIDVALIDITY \d+\]
S: \* OK \[UNSEEN 1\]
S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
S: \* OK \[UIDNEXT 5\]
S: 3a OK \[READ-WRITE\] SELECT completed.

# Do an expunge with session 1
SESSION: 1
C: 1f EXPUNGE
S: \* 1 EXPUNGE
S: \* 2 EXPUNGE
S: \* 2 RECENT
S: 1f OK EXPUNGE completed.

# Make sure session 2 gets expunge responses
SESSION: 2
C: 2b NOOP
S: \* 1 EXPUNGE
S: \* 2 EXPUNGE
S: 2b OK NOOP completed.

# Now select with a new session - we have sessions 2,3 and 4 in different states
SESSION: 4
C: 4a SELECT expungeresponse
S: \* FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)
S: \* 2 EXISTS
S: \* 0 RECENT
S: \* OK \[UIDVALIDITY \d+\]
S: \* OK \[UNSEEN 1\]
S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
S: \* OK \[UIDNEXT 5\]
S: 4a OK \[READ-WRITE\] SELECT completed.

SESSION: 1
C: 1g STORE 1 FLAGS (\Deleted)
S: \* 1 FETCH \(FLAGS \(\\Deleted \\Recent\)\)
S: 1g OK STORE completed.
C: 1h EXPUNGE
S: \* 1 EXPUNGE
S: \* 1 RECENT
S: 1h OK EXPUNGE completed.

SESSION: 2
C: 2c NOOP
S: \* 1 EXPUNGE
S: 2c OK NOOP completed.

SESSION: 3
C: 3b NOOP
S: \* 1 EXPUNGE
S: \* 1 EXPUNGE
S: \* 1 EXPUNGE
S: 3b OK NOOP completed.

SESSION: 4
C: 4b NOOP
S: \* 1 EXPUNGE
S: 4b OK NOOP completed.

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






© 2015 - 2024 Weber Informatics LLC | Privacy Policy