mbox-rebuild.c revision a9a1257263df42c61458bd2d9dad9fe13ef4af82
/* 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 "mail-hash.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);
if (failed)
return FALSE;
/* update sync stamp */
/* rebuild is complete - remove the flag */
return TRUE;
}