mail-index-fsck.c revision 2a0faefaf4f30c9acea142ed12c11524ff78ea55
/* Copyright (C) 2002 Timo Sirainen */
#include "lib.h"
#include "mail-index.h"
#include "mail-index-util.h"
{
}
if (old_hdr->first_unseen_uid_lowwater >
i_warning("fsck: first_unseen_uid_lowwater %u > %u",
}
i_warning("fsck: first_deleted_uid_lowwater %u > %u",
}
}
{
/* we verify only the fields in the header. other problems will be
noticed and fixed while reading the messages. */
unsigned int max_uid;
return FALSE;
hdr->first_hole_position = 0;
hdr->first_hole_records = 0;
hdr->messages_count = 0;
hdr->seen_messages_count = 0;
hdr->deleted_messages_count = 0;
hdr->first_unseen_uid_lowwater = 0;
sizeof(MailIndexHeader));
max_uid = 0;
/* expunged message */
if (hdr->first_hole_position == 0) {
} else if (hdr->first_hole_position +
sizeof(MailIndexRecord)) == pos) {
/* hole continues */
}
continue;
}
return FALSE;
}
else if (hdr->first_unseen_uid_lowwater)
if (hdr->first_deleted_uid_lowwater == 0)
}
hdr->messages_count++;
}
/* FSCK flag is removed automatically by set_lock() */
return TRUE;
}