mbox-open.c revision 66251e6ab31e5cc153fe5cae608e416dacafe9cd
/* Copyright (C) 2002 Timo Sirainen */
#include "lib.h"
#include "mbox-index.h"
#include "mail-index-util.h"
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
{
const char *location;
char buf[5];
"Missing location field for record %u",
return -1;
}
/* location = offset */
if (fd == -1) {
return -1;
}
return -1;
}
/* make sure message size is valid */
/* and check that we end with either EOF or to
beginning of next message */
if (ret == 0)
}
}
if (ok) {
return fd;
} else {
/* file has been updated, rescan it */
}
return -1;
}