]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Fix SEARCH (MAX RELEVANCY) to return the relevancy
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 16 Mar 2020 10:07:16 +0000 (12:07 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Fri, 20 Mar 2020 08:03:57 +0000 (08:03 +0000)
src/imap/imap-search.c

index 9c9737cd4d0e9685f937ec5398a6c5d90970da71..25b16551bf7723ebead872fbf656fee70a2f866a 100644 (file)
@@ -463,7 +463,7 @@ static bool cmd_search_more(struct client_command_context *cmd)
        if ((opts & SEARCH_RETURN_MAX) != 0 && ctx->max_seq != 0 &&
            ctx->max_update_seq != ctx->max_seq &&
            HAS_ANY_BITS(opts, SEARCH_RETURN_MODSEQ |
-                        SEARCH_RETURN_SAVE)) {
+                        SEARCH_RETURN_SAVE | SEARCH_RETURN_RELEVANCY)) {
                /* finish handling MAX */
                mail = mail_alloc(ctx->trans, 0, NULL);
                mail_set_seq(mail, ctx->max_seq);