mail-cache-sync-update.c revision 2219015cc814b18a72d8d37696a5bffc52edd767
/* Copyright (c) 2004-2014 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "mail-cache-private.h"
#include "mail-index-sync-private.h"
struct mail_cache_sync_context {
unsigned expunge_count;
};
{
struct mail_cache_sync_context *ctx;
else {
}
return ctx;
}
struct mail_cache_sync_context *ctx)
{
return;
/* update the record counts in the cache file's header. these
are used to figure out when a cache file should be
recreated and the old data dropped. */
else
(void)mail_cache_unlock(cache);
}
}
{
*sync_context = NULL;
return 0;
}
if (*cache_offset == 0)
return 0;
ctx->expunge_count++;
return 0;
}