summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Varshavchik2022-01-17 22:58:32 -0500
committerSam Varshavchik2022-01-17 22:58:32 -0500
commitaf6cadae9b73f7a5144664485ed1b61daa8890cf (patch)
treebf6e4729779ea899dbf25274a320fd6eefbde7d8
parentf67b3067a0fee0b7e768f6bd9e12649cacc1f0d2 (diff)
downloadcourier-libs-af6cadae9b73f7a5144664485ed1b61daa8890cf.tar.bz2
Add additional tests.
-rwxr-xr-ximap/testsuite10
-rw-r--r--imap/testsuite.txt25
2 files changed, 32 insertions, 3 deletions
diff --git a/imap/testsuite b/imap/testsuite
index 99a14a1..1e065da 100755
--- a/imap/testsuite
+++ b/imap/testsuite
@@ -1093,6 +1093,7 @@ EOF
rm -rf confmdtest confmdtest2
../maildir/maildirmake confmdtest
../maildir/maildirmake -f Trash confmdtest
+../maildir/maildirmake -f folder:with:colonTD confmdtest
../maildir/maildirmake -S confmdtest2
../maildir/maildirmake -s write -f writable confmdtest2
../maildir/maildirmake --add another=`pwd`/confmdtest2 confmdtest
@@ -1104,8 +1105,13 @@ chmod +x confsendmail
echo >confmdtest/.Trash/cur/msg:2
touch -t 202001011200 confmdtest/.Trash/cur/msg:2
+echo >confmdtest/.folder:with:colonTD/cur/001:2,T
+echo >confmdtest/.folder:with:colonTD/cur/002TD:2,T
+echo >confmdtest/.folder:with:colonTD/cur/003:2,ATDB
+
env IMAP_BROKENUIDV=1 IMAP_TRASHFOLDERNAME=Trash IMAP_EMPTYTRASH=Trash:7 \
MAILDIR=confmdtest AUTHENTICATED=user1 OUTBOX=.Outbox \
+ IMAP_MOVE_EXPUNGE_TO_TRASH=1 \
SENDMAIL=`pwd`/confsendmail $IMAPINVOKE <<EOF
U001 APPEND INBOX \Seen {5}
test
@@ -1127,8 +1133,12 @@ test
U014 NOOP
U015 COPY 1,2 INBOX.Outbox
U016 COPY 1 INBOX.Outbox
+U017 SELECT INBOX.folder:with:colonTD
+U019 EXPUNGE
EOF
echo "===Sent=="
cat confsendmail.out
+echo "===Trash="
+ls confmdtest/.Trash/cur
echo "==="
rm -f confsendmail confsendmail.out
diff --git a/imap/testsuite.txt b/imap/testsuite.txt
index 1f541c9..31f882e 100644
--- a/imap/testsuite.txt
+++ b/imap/testsuite.txt
@@ -1703,6 +1703,7 @@
001417 + OK
001418 U001 OK APPEND Ok.
001419 * LIST (\HasNoChildren) "." "INBOX.Trash"
+001419 * LIST (\HasNoChildren) "." "INBOX.folder:with:colonTD"
001419 * LIST (\HasNoChildren) "." "shared.another.writable"
001419 * LIST (\Noselect \HasChildren) "." "shared"
001419 * LIST (\Noselect \HasChildren) "." "shared.another"
@@ -1734,6 +1735,24 @@
001441 U014 OK NOOP completed
001442 U015 NO [ALERT] Only one message may be sent at a time.
001443 U016 OK COPY completed.
-001444 ===Sent==
-001445 test
-001446 ===
+001444 * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
+001445 * OK [PERMANENTFLAGS (\Draft \Answered \Flagged \Deleted \Seen)] Limited
+001446 * 3 EXISTS
+001447 * 3 RECENT
+001448 * OK [UIDVALIDITY] Ok
+001449 * OK [MYRIGHTS "acdilrsw"] ACL
+001450 U017 OK [READ-WRITE] Ok
+001451 * 1 EXPUNGE
+001452 * 1 EXPUNGE
+001453 * 1 EXPUNGE
+001454 * 0 EXISTS
+001455 * 0 RECENT
+001456 U019 OK EXPUNGE completed
+001457 ===Sent==
+001458 test
+001459 ===Trash=
+001460 001:2,
+001461 002TD:2,
+001462 003:2,AB
+001463 msg:2
+001464 ===