summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Varshavchik2022-01-31 19:32:11 -0500
committerSam Varshavchik2022-01-31 19:32:11 -0500
commit2d77bfdeea48b8af1cbc96c6773d1bafd697cb80 (patch)
tree53944fc66ace7ab6f72c9aa01d06f7532ee7659f
parent37299e28450a4dd3dd7fe08a0b654b6c3d81d08c (diff)
downloadcourier-libs-2d77bfdeea48b8af1cbc96c6773d1bafd697cb80.tar.bz2
Additional tests
-rwxr-xr-ximap/testsuite39
-rw-r--r--imap/testsuite.txt18
2 files changed, 57 insertions, 0 deletions
diff --git a/imap/testsuite b/imap/testsuite
index 2a550a3..26a3f70 100755
--- a/imap/testsuite
+++ b/imap/testsuite
@@ -1175,6 +1175,7 @@ EOF
rm -rf confmdtest
../maildir/maildirmake confmdtest || exit 1
+
env IMAP_BROKENUIDV=1 AUTHENTICATED=user1 $IMAPINVOKE confmdtest <<EOF
V001 ACL STORE INBOX user=user2 +w
V002 CREATE INBOX.Folder.Subfolder
@@ -1186,4 +1187,42 @@ V007 GETQUOTAROOT INBOX
V008 LIST "invalid" "%"
EOF
ls confmdtest/courierimaphieracl 2>&1
+
+cat >confmdtest/cur/msg1:2,S <<EOF || exit 1
+From: John <john@example.com>
+To: Steve <steve@example.com>, Tom <tom@example.com>
+Subject: thread1
+Mime-Version: 1.0
+Date: Sat, 05 Feb 2000 13:34:03 -0800
+Content-Type: multipart/mixed; boundary="b1"
+Message-Id: <1@example.com>
+Subject: This is the message
+
+message
+EOF
+
+env IMAP_BROKENUIDV=1 AUTHENTICATED=user1 $IMAPINVOKE confmdtest <<EOF
+V010 SELECT INBOX
+EOF
+
+cat >confmdtest/cur/msg2:2,S <<EOF || exit 1
+From: John <john@example.com>
+To: Steve <steve@example.com>, Tom <tom@example.com>
+Subject: thread1
+Mime-Version: 1.0
+Date: Sat, 05 Feb 2000 13:34:01 -0800
+Content-Type: multipart/mixed; boundary="b1"
+Message-Id: <2@example.com>
+References: <1@example.com>
+Subject: This is the message
+
+message
+EOF
+
+env IMAP_BROKENUIDV=1 AUTHENTICATED=user1 $IMAPINVOKE confmdtest <<EOF
+V010 SELECT INBOX
+V010 THREAD ORDEREDSUBJECT US-ASCII ALL
+EOF
+
+
rm -rf confmdtest
diff --git a/imap/testsuite.txt b/imap/testsuite.txt
index 1535e16..1738b2a 100644
--- a/imap/testsuite.txt
+++ b/imap/testsuite.txt
@@ -1794,3 +1794,21 @@
001496 * QUOTA "ROOT"
001497 V007 OK GETQUOTAROOT Ok.
001498 V008 OK LIST completed
+001499 * PREAUTH Ready.
+001500 * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
+001501 * OK [PERMANENTFLAGS (\Draft \Answered \Flagged \Deleted \Seen)] Limited
+001502 * 1 EXISTS
+001503 * 1 RECENT
+001504 * OK [UIDVALIDITY] Ok
+001505 * OK [MYRIGHTS "acdilrsw"] ACL
+001506 V010 OK [READ-WRITE] Ok
+001507 * PREAUTH Ready.
+001508 * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
+001509 * OK [PERMANENTFLAGS (\Draft \Answered \Flagged \Deleted \Seen)] Limited
+001510 * 2 EXISTS
+001511 * 1 RECENT
+001512 * OK [UIDVALIDITY] Ok
+001513 * OK [MYRIGHTS "acdilrsw"] ACL
+001514 V010 OK [READ-WRITE] Ok
+001515 * THREAD (2 1)
+001516 V010 OK THREAD done.