struct mailbox_status status;
struct mail_namespace *ns;
+ if (ctx->prev_uid != 0) {
+ (void)fts_index_set_last_uid(ctx->cur_box, ctx->prev_uid);
+ ctx->prev_uid = 0;
+ }
+
ctx->cur_box = box;
ctx->uid_validity = 0;
i_free_and_null(ctx->id_box_name);
(struct solr_fts_backend_update_context *)_ctx;
const char *box_guid;
- ctx->cur_box = box;
+ if (ctx->prev_uid != 0) {
+ (void)fts_index_set_last_uid(ctx->cur_box, ctx->prev_uid);
+ ctx->prev_uid = 0;
+ }
if (box != NULL) {
if (fts_mailbox_get_guid(box, &box_guid) < 0)
} else {
memset(ctx->box_guid, 0, sizeof(ctx->box_guid));
}
+ ctx->cur_box = box;
}
static void