]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Add test for inversion of n->max
authorAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 7 Dec 2016 08:19:02 +0000 (10:19 +0200)
committerGitLab <gitlab@git.dovecot.net>
Thu, 8 Dec 2016 17:52:05 +0000 (19:52 +0200)
In mail-search-simplify-args, ensure that
ALL NOT UID 3:* becomes UID 1:2

src/lib-storage/test-mail-search-args-simplify.c

index e3f859bc99386254d9cd22729736b935cf12faa7..e17629e79f5aedc6ca95bb6b32d94bcc5f48994e 100644 (file)
@@ -69,6 +69,8 @@ struct {
        { "1:5 UID 10:20", "1:5 UID 10:20" },
        { "1:5 NOT UID 10:20", "1:5 UID 1:9,21:4294967295" },
 
+       { "ALL NOT UID 3:*", "UID 1:2" },
+
        { "BEFORE 03-Aug-2014 BEFORE 01-Aug-2014 BEFORE 02-Aug-2014", "BEFORE \"01-Aug-2014\"" },
        { "OR BEFORE 01-Aug-2014 BEFORE 02-Aug-2014", "BEFORE \"02-Aug-2014\"" },
        { "OR BEFORE 01-Aug-2014 OR BEFORE 03-Aug-2014 BEFORE 02-Aug-2014", "BEFORE \"03-Aug-2014\"" },