From 8900e5f6360c0eaf379aee1037508ad5575f6c33 Mon Sep 17 00:00:00 2001
From: Sam Varshavchik
Date: Wed, 23 Feb 2022 20:06:33 -0500
Subject: Add additional tests.
---
imap/testsuite | 43 +++++++++++++++++++
imap/testsuite.txt | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 161 insertions(+)
diff --git a/imap/testsuite b/imap/testsuite
index 59d9161..1c5cdd6 100755
--- a/imap/testsuite
+++ b/imap/testsuite
@@ -1251,3 +1251,46 @@ W006 EXPUNGE
EOF
ls confmdtest/shared-folders/test/a/cur 2>&1
rm -rf confmdtest confmdtest2
+
+../maildir/maildirmake confmdtest
+
+cat >confmdtest/cur/msg1:2,S <
Hello world!
+001578 +001579 --xx1-- +001580 ) +001581 X004 OK FETCH completed. +001582 * 1 FETCH (BODY[HEADER] {100} +001583 Subject: MIME fetch test +001584 Mime-Version: 1.0 +001585 Content-Type: multipart/alternative; boundary="xx1" +001586 +001587 ) +001588 X005 OK FETCH completed. +001589 * 1 FETCH (BODY[1] {14} +001590 Hello world! +001591 ) +001592 X006 OK FETCH completed. +001593 * 1 FETCH (BODY[2] {21} +001594Hello world!
+001595 ) +001596 X007 OK FETCH completed. +001597 * 1 FETCH (BODY[1.HEADER] {78} +001598 Content-Type: text/plain; charset="utf-8" +001599 Content-Transfer-Encoding: 8bit +001600 +001601 ) +001602 X008 OK FETCH completed. +001603 * 1 FETCH (BODY[HEADER.FIELDS ("Subject" "Content-Type")] {81} +001604 Subject: MIME fetch test +001605 Content-Type: multipart/alternative; boundary="xx1" +001606 +001607 ) +001608 X009 OK FETCH completed. +001609 * 1 FETCH (BODY[2.HEADER.FIELDS.NOT ("Content-Type")] {35} +001610 Content-Transfer-Encoding: 7bit +001611 +001612 ) +001613 X010 OK FETCH completed. +001614 * 1 FETCH (BODY[2]<0> {4} +001615H) +001616 X011 OK FETCH completed. +001617 * 1 FETCH (BODY[2]<4> {4} +001618 ello) +001619 X012 OK FETCH completed. +001620 * 1 FETCH (BODY[2]<0> {4} +001621
H) +001622 X013 OK FETCH completed. +001623 * 1 FETCH (ENVELOPE (NIL "MIME fetch test" NIL NIL NIL NIL NIL NIL NIL NIL) RFC822 {300} +001624 Subject: MIME fetch test +001625 Mime-Version: 1.0 +001626 Content-Type: multipart/alternative; boundary="xx1" +001627 +001628 --xx1 +001629 Content-Type: text/plain; charset="utf-8" +001630 Content-Transfer-Encoding: 8bit +001631 +001632 Hello world! +001633 +001634 --xx1 +001635 Content-Type: text/html +001636 Content-Transfer-Encoding: 7bit +001637 +001638
Hello world!
+001639 +001640 --xx1-- +001641 ) +001642 X014 OK FETCH completed. +001643 * 1 FETCH (RFC822.HEADER {100} +001644 Subject: MIME fetch test +001645 Mime-Version: 1.0 +001646 Content-Type: multipart/alternative; boundary="xx1" +001647 +001648 RFC822.SIZE 300) +001649 X015 OK FETCH completed. +001650 * 1 FETCH (RFC822.TEXT {200} +001651 --xx1 +001652 Content-Type: text/plain; charset="utf-8" +001653 Content-Transfer-Encoding: 8bit +001654 +001655 Hello world! +001656 +001657 --xx1 +001658 Content-Type: text/html +001659 Content-Transfer-Encoding: 7bit +001660 +001661Hello world!
+001662 +001663 --xx1-- +001664 ) +001665 X016 OK FETCH completed. +001666 * BYE Courier-IMAP server shutting down +001667 XDONE OK LOGOUT completed -- cgit v1.2.3