index-expunge.c revision 100e980900f652c9114997d7153e010e0639effe
/* Copyright (C) 2002 Timo Sirainen */
#include "lib.h"
#include "index-storage.h"
{
if (hdr->deleted_messages_count == 0) {
/* no deleted messages */
*seq = 0;
return TRUE;
}
/* find mails with DELETED flag and expunge them */
"index header's deleted_messages_count (%u) "
"or first_deleted_uid_lowwater (%u) "
/* fsck should be enough to fix it */
return FALSE;
}
} else {
*seq = 1;
}
return TRUE;
}
{
return FALSE;
if (notify) {
ibox->sync_context);
}
}
return TRUE;
}
{
int failed;
return FALSE;
}
return mail_storage_set_index_error(ibox);
return FALSE;
/* modifylog must be marked synced before expunging
anything new */
else
return mail_storage_set_index_error(ibox);
return !failed;
}