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

org.apache.james.imap.scripts.Copy.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.                                           #
################################################################
C: a1 CREATE copied
S: a1 OK CREATE completed.

C: a2 STATUS copied (MESSAGES)
S: \* STATUS "copied" \(MESSAGES 0\)
S: a2 OK STATUS completed.

# mark one message as deleted before copying (to check that flags are copied)
C: a3 STORE 3 FLAGS (\Deleted)
S: \* 3 FETCH \(FLAGS \(\\Deleted \\Recent\)\)
S: a3 OK STORE completed.

# copy messages 2-4
C: a4 COPY 2:4 copied
S: a4 OK COPY completed.

# Check there's 3 messages in the copied mailbox
C: a5 STATUS copied (MESSAGES)
S: \* STATUS "copied" \(MESSAGES 3\)
S: a5 OK STATUS completed.

# Modify an original after copying, to ensure it's not the same message.
C: a6 STORE 2 FLAGS (\Flagged)
S: \* 2 FETCH \(FLAGS \(\\Flagged \\Recent\)\)
S: a6 OK STORE completed.

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

C: a8 FETCH 1:4 (FLAGS)
S: \* 1 FETCH \(FLAGS \(\)\)
S: \* 2 FETCH \(FLAGS \(\\Deleted\)\)
S: \* 3 FETCH \(FLAGS \(\)\)
S: a8 OK FETCH completed.

C: a9 DELETE copied
S: a9 OK DELETE completed.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy