]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: search_more() - Ensure mailbox_search_notify() is invoked
authorMarco Bettini <marco.bettini@open-xchange.com>
Mon, 5 Jun 2023 15:43:42 +0000 (15:43 +0000)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 9 Jun 2023 10:54:32 +0000 (10:54 +0000)
src/lib-storage/index/index-search.c
src/lib-storage/mail-storage.c
src/lib-storage/mail-storage.h

index 930f810f0a80f4642a45a9cc28c18d68428176dd..1df02315cd6ccd396a8b4ee728bced0abc2d688e 100644 (file)
@@ -1812,6 +1812,7 @@ static int search_more(struct index_search_context *ctx,
                        ret = -1;
                        break;
                }
+               mailbox_search_notify(ctx->box, &ctx->mail_ctx);
        }
        return ret;
 }
index adc27375e3d743c9cd73e74951f1426dad2caa8b..58778807e3d05f0127a0416e4bd3a91e5a47d97c 100644 (file)
@@ -2543,8 +2543,7 @@ mailbox_search_set_progress_hidden(struct mail_search_context *ctx, bool hidden)
        ctx->progress_hidden = hidden;
 }
 
-static void mailbox_search_notify(struct mailbox *box,
-                                 struct mail_search_context *ctx)
+void mailbox_search_notify(struct mailbox *box, struct mail_search_context *ctx)
 {
        if (ctx->search_start_time.tv_sec == 0) {
                ctx->search_start_time = ioloop_timeval;
index b3a19b1be9d496b44825135188a5a8c9f730d811..9afd32a453b05b7442bfff6991e9c0e751e5445d 100644 (file)
@@ -761,6 +761,7 @@ bool mailbox_search_next(struct mail_search_context *ctx, struct mail **mail_r);
    more results will be returned by calling the function again. */
 bool mailbox_search_next_nonblock(struct mail_search_context *ctx,
                                  struct mail **mail_r, bool *tryagain_r);
+void mailbox_search_notify(struct mailbox *box, struct mail_search_context *ctx);
 /* Returns TRUE if some messages were already expunged and we couldn't
    determine correctly if those messages should have been returned in this
    search. */