bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2004-2018 Dovecot authors, see the included COPYING file */
38228c961f0e2c5fb8a0620a8ce620bb245dc88dAki Tuomivoid mail_cache_expunge_count(struct mail_cache *cache, unsigned int count)
1b75126c39121b25f0bba048758b56d4b4b9bf1aTimo Sirainenstatic struct mail_cache_sync_context *mail_cache_handler_init(void **context)
1b75126c39121b25f0bba048758b56d4b4b9bf1aTimo Sirainen *context = i_new(struct mail_cache_sync_context, 1);
2219015cc814b18a72d8d37696a5bffc52edd767Timo Sirainenstatic void mail_cache_handler_deinit(struct mail_index_sync_map_ctx *sync_ctx,
2219015cc814b18a72d8d37696a5bffc52edd767Timo Sirainen struct mail_cache *cache = sync_ctx->view->index->cache;
38228c961f0e2c5fb8a0620a8ce620bb245dc88dAki Tuomi mail_cache_expunge_count(cache, ctx->expunge_count);
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainenint mail_cache_expunge_handler(struct mail_index_sync_map_ctx *sync_ctx,
2219015cc814b18a72d8d37696a5bffc52edd767Timo Sirainen void **sync_context, void *context ATTR_UNUSED)