org.apache.james.imap.scripts.Status.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. #
################################################################
C: a1 CREATE statustest
S: a1 OK CREATE completed.
# Tests for the STATUS command
C: a001 STATUS statustest (MESSAGES)
S: \* STATUS \"statustest\" \(MESSAGES 0\)
S: a001 OK STATUS completed.
C: a002 STATUS statustest ( MESSAGES )
S: \* STATUS \"statustest\" \(MESSAGES 0\)
S: a002 OK STATUS completed.
C: a003 STATUS statustest (MESSAGES RECENT UIDNEXT UIDVALIDITY UNSEEN)
S: \* STATUS \"statustest\" \(MESSAGES 0 RECENT 0 UIDNEXT \d+ UIDVALIDITY \d+ UNSEEN 0\)
S: a003 OK STATUS completed.
C: a004 STATUS statustest (UNSEEN RECENT )
S: \* STATUS \"statustest\" \(RECENT 0 UNSEEN 0\)
S: a004 OK STATUS completed.
C: A005 APPEND statustest {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: A005 OK APPEND completed.
C: a006 STATUS statustest (UNSEEN RECENT )
S: \* STATUS \"statustest\" \(RECENT 1 UNSEEN 1\)
S: a006 OK STATUS completed.
# Make sure that the recent flag isn't unset
C: a007 STATUS statustest (UNSEEN RECENT )
S: \* STATUS \"statustest\" \(RECENT 1 UNSEEN 1\)
S: a007 OK STATUS completed.
# Cleanup
C: a1 DELETE statustest
S: a1 OK DELETE completed.