From f8f46f2f34a077b43fb24f6171f036750d49f79c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 16 Mar 2020 12:07:16 +0200 Subject: [PATCH] imap: Fix SEARCH (MAX RELEVANCY) to return the relevancy --- src/imap/imap-search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imap/imap-search.c b/src/imap/imap-search.c index 9c9737cd4d..25b16551bf 100644 --- a/src/imap/imap-search.c +++ b/src/imap/imap-search.c @@ -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); -- 2.47.3