/* Copyright (c) 2004-2018 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;
};
{
if (mail_cache_lock(cache) > 0) {
else
(void)mail_cache_unlock(cache);
}
}
{
else {
}
return ctx;
}
struct mail_cache_sync_context *ctx)
{
return;
}
{
*sync_context = NULL;
return 0;
}
if (*cache_offset == 0)
return 0;
ctx->expunge_count++;
return 0;
}