You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2023/04/27 10:55:15 UTC

[james-project] 01/03: [FIX] Strengthen IMAP ESEARCH tests

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 64d394f721b6296bd5387226dc8a6a5445847fa2
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Wed Apr 26 17:28:41 2023 +0700

    [FIX] Strengthen IMAP ESEARCH tests
---
 .../imap/scripts/SearchOptionAggregations.test     | 62 ++++++++++++++++++++--
 1 file changed, 59 insertions(+), 3 deletions(-)

diff --git a/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SearchOptionAggregations.test b/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SearchOptionAggregations.test
index c408a3f4f4..79ebebf289 100644
--- a/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SearchOptionAggregations.test
+++ b/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SearchOptionAggregations.test
@@ -143,6 +143,62 @@ S: \* 5 FETCH .*
 }
 S: i OK FETCH completed.
 
-C: h SEARCH RETURN (ALL) FLAGGED
-S: \* ESEARCH \(TAG "h"\) ALL 1:2,4:5
-S: h OK SEARCH completed.
\ No newline at end of file
+C: j SEARCH RETURN (ALL) FLAGGED
+S: \* ESEARCH \(TAG "j"\) ALL 1:2,4:5
+S: j OK SEARCH completed.
+
+C: k UID SEARCH RETURN (ALL) FLAGGED
+S: \* ESEARCH \(TAG "k"\) UID ALL 1:2,4:5
+S: k OK SEARCH completed.
+
+C: l UID SEARCH RETURN (MIN MAX COUNT) FLAGGED
+S: \* ESEARCH \(TAG "l"\) UID MIN 1 MAX 5 COUNT 4
+S: l OK SEARCH completed.
+
+C: m UID SEARCH RETURN (ALL SAVE) FLAGGED
+S: \* ESEARCH \(TAG "m"\) UID ALL 1:2,4:5
+S: m OK SEARCH completed.
+
+C: n FETCH $ FLAGS
+SUB {
+S: \* 1 FETCH .*
+S: \* 2 FETCH .*
+S: \* 4 FETCH .*
+S: \* 5 FETCH .*
+}
+S: n OK FETCH completed.
+
+C: o UID SEARCH RETURN (MIN MAX SAVE) FLAGGED
+S: \* ESEARCH \(TAG "o"\) UID MIN 1 MAX 5
+S: o OK SEARCH completed.
+
+C: p FETCH $ FLAGS
+SUB {
+S: \* 1 FETCH .*
+S: \* 5 FETCH .*
+}
+S: p OK FETCH completed.
+
+C: q UID SEARCH RETURN (MIN MAX COUNT SAVE) FLAGGED
+S: \* ESEARCH \(TAG "q"\) UID MIN 1 MAX 5 COUNT 4
+S: q OK SEARCH completed.
+
+C: r FETCH $ FLAGS
+SUB {
+S: \* 1 FETCH .*
+S: \* 2 FETCH .*
+S: \* 4 FETCH .*
+S: \* 5 FETCH .*
+}
+S: r OK FETCH completed.
+
+C: s UID SEARCH RETURN (MIN MAX) ANSWERED
+S: \* ESEARCH \(TAG "s"\) UID
+S: s OK SEARCH completed.
+
+C: t UID SEARCH RETURN (MIN MAX SAVE) ANSWERED
+S: \* ESEARCH \(TAG "t"\) UID
+S: t OK SEARCH completed.
+
+C: u FETCH $ FLAGS
+S: u OK FETCH completed.


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org