dbox-sync-rebuild.c revision 9f32b9444d2a6db8f556d2c49ffceab1a59791ff
/* Copyright (c) 2007-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "index-storage.h"
#include "dbox-storage.h"
#include "dbox-sync-rebuild.h"
static void
struct mail_index_view *view,
{
struct mail_index_map *map;
const void *data;
bool expunged;
return;
if (expunged)
return;
return;
if (!ctx->cache_used) {
/* set reset id */
}
}
}
static void
struct mail_index_view *view,
{
const struct mail_index_record *rec;
struct mail_keywords *kw;
/* copy flags */
/* copy keywords */
}
{
/* the message exists in the old index.
copy the metadata from it. */
/* copy the metadata from backup index. */
}
}
struct dbox_sync_rebuild_context *
struct mail_index_view *view,
struct mail_index_transaction *trans)
{
struct dbox_sync_rebuild_context *ctx;
const char *index_dir;
/* if backup index file exists, try to use it */
ctx->backup_index =
#ifndef MMAP_CONFLICTS_WRITE
#endif
else
return ctx;
}
{
}
}