mail-index-fsck.c revision f6d121ba17e01dbf43a3d9c98a024ed8f1eb9043
/* Copyright (C) 2002 Timo Sirainen */
#include "lib.h"
#include "mail-index.h"
#include "mail-index-util.h"
{
i_warning("fsck: first_hole_position %u != %u",
}
if (new_hdr->first_unseen_uid_lowwater != 0 &&
i_warning("fsck: first_unseen_uid_lowwater %u > %u",
}
if (new_hdr->first_deleted_uid_lowwater != 0 &&
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. */
return FALSE;
hdr->first_hole_index = 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_records == 0) {
} else if (hdr->first_hole_index +
/* 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;
}