mbox-rebuild.c revision 20a03ce664138ba52e2b533eea79d94e3e1030cc
/* Copyright (C) 2002 Timo Sirainen */
#include "lib.h"
#include "iobuffer.h"
#include "mbox-index.h"
#include "mbox-lock.h"
#include "mail-index-data.h"
#include "mail-index-util.h"
#include <unistd.h>
#include <fcntl.h>
{
int failed;
return FALSE;
/* reset the header */
/* we require MD5 to be cached */
/* update indexid, which also means that our state has completely
changed */
/* reset data file */
return FALSE;
return FALSE;
/* lock the mailbox so we can be sure no-one interrupts us. */
if (!mbox_lock_read(index)) {
return FALSE;
}
(void)mbox_unlock(index);
if (failed)
return FALSE;
/* update sync stamp */
/* rebuild is complete - remove the flag */
return TRUE;
}