mbox-rebuild.c revision 429c1e6a778d7e84d6d2d2b506709566903445c9
/* 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>
{
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;
/* open the mbox file. we don't really need to open it read-write,
but fcntl() locking requires it. */
if (fd == -1)
/* lock the mailbox so we can be sure no-one interrupts us. */
return FALSE;
}
MAIL_MMAP_BLOCK_SIZE, 0, TRUE);
if (failed)
return FALSE;
/* update sync stamp */
/* rebuild is complete - remove the flag */
return TRUE;
}