index-status.c revision 100e980900f652c9114997d7153e010e0639effe
/* Copyright (C) 2002 Timo Sirainen */
#include "lib.h"
#include "mail-custom-flags.h"
#include "index-storage.h"
{
unsigned int seq, lowwater_uid;
/* no unseen messages */
return 0;
}
/* no unseen messages */
} else if (lowwater_uid != 0) {
/* begin scanning from the low water mark */
i_error("index header's seen_messages_count or "
"first_unseen_uid_lowwater is invalid.");
return 0;
}
} else {
/* begin scanning from the beginning */
seq = 1;
}
seq++;
}
/* update the low water mark if we can get exclusive
lock immediately. */
}
}
static void
{
const char **flags;
unsigned int i;
for (i = 0; i < MAIL_CUSTOM_FLAGS_COUNT; i++)
}
{
/* if we're doing STATUS for selected mailbox, we have to sync it
first or STATUS reply may give different data */
return FALSE;
return mail_storage_set_index_error(ibox);
return FALSE;
}
/* we can get most of the status items without any trouble */
if (items & STATUS_FIRST_UNSEEN_SEQ) {
}
if (items & STATUS_RECENT)
if (items & STATUS_CUSTOM_FLAGS)
return mail_storage_set_index_error(ibox);
return TRUE;
}