From: Marco Bettini Date: Tue, 17 Oct 2023 09:37:36 +0000 (+0000) Subject: fts: indexer - Make index_mailbox_precache_virtual() recursive X-Git-Tag: 2.4.0~2516 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96ce502bfac9330f641be682b064d6f621baa294;p=thirdparty%2Fdovecot%2Fcore.git fts: indexer - Make index_mailbox_precache_virtual() recursive This is required for virtual-attachments plugin --- diff --git a/src/indexer/master-connection.c b/src/indexer/master-connection.c index 2c7f8d3c8b..0fb8855d84 100644 --- a/src/indexer/master-connection.c +++ b/src/indexer/master-connection.c @@ -198,6 +198,9 @@ index_mailbox_precache_real(struct master_connection *conn, struct mailbox *box) return ret; } +static int +index_mailbox_precache(struct master_connection *conn, struct mailbox *box); + static int index_mailbox_precache_virtual(struct master_connection *conn, struct mailbox *box) { @@ -207,7 +210,7 @@ index_mailbox_precache_virtual(struct master_connection *conn, struct mailbox *b struct mailbox *bbox; array_foreach_elem(&mailboxes, bbox) - if (index_mailbox_precache_real(conn, bbox) < 0) + if (index_mailbox_precache(conn, bbox) < 0) return -1; return 0;