1
#ifndef DBOX_SYNC_REBUILD_H
2
#define DBOX_SYNC_REBUILD_H
6
struct dbox_sync_rebuild_context {
9
struct mail_index_view *view;
10
struct mail_index_transaction *trans;
11
uint32_t cache_ext_id;
12
uint32_t cache_reset_id;
14
struct mail_index *backup_index;
15
struct mail_index_view *backup_view;
17
unsigned int cache_used:1;
20
struct dbox_sync_rebuild_context *
21
dbox_sync_index_rebuild_init(struct mailbox *box,
22
struct mail_index_view *view,
23
struct mail_index_transaction *trans);
24
void dbox_sync_index_rebuild_deinit(struct dbox_sync_rebuild_context **ctx);
26
void dbox_sync_rebuild_index_metadata(struct dbox_sync_rebuild_context *ctx,
27
uint32_t new_seq, uint32_t uid);
28
int dbox_sync_rebuild_verify_alt_storage(struct mailbox_list *list);