diff src/lib-index/mail-cache-private.h @ 22037:7d09937dc4ff

lib-index: Add mail_cache_expunge_count It can be called to correctly handle cache counters when records are removed.
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Tue, 09 May 2017 14:29:04 +0300
parents 34074cc72a15
children 39df47bebbe7
line wrap: on
line diff
--- a/src/lib-index/mail-cache-private.h	Tue May 02 12:18:40 2017 +0300
+++ b/src/lib-index/mail-cache-private.h	Tue May 09 14:29:04 2017 +0300
@@ -229,6 +229,7 @@
 void mail_cache_header_fields_get(struct mail_cache *cache, buffer_t *dest);
 int mail_cache_header_fields_get_next_offset(struct mail_cache *cache,
 					     uint32_t *offset_r);
+void mail_cache_expunge_count(struct mail_cache *cache, unsigned int count);
 
 uint32_t mail_cache_lookup_cur_offset(struct mail_index_view *view,
 				      uint32_t seq, uint32_t *reset_id_r);