mdbox-storage-rebuild.c revision 4fded1eec06aba9ce37887ac30619768760cd0d0
d1eec04fac1f40f4d8f4c84f7f90ef6944495418Timo Sirainen/* Copyright (c) 2009-2010 Dovecot authors, see the included COPYING file */
struct mdbox_storage_rebuild_context {
static unsigned int guid_hash(const void *p)
const uint8_t *s = p;
for (i = 0; i < MAIL_GUID_128_SIZE; i++) {
static struct mdbox_storage_rebuild_context *
return ctx;
const char *guid;
int ret;
prev_offset = 0;
if (ret > 0) {
if (ret == 0) {
if (prev_offset == 0) {
if (!first) {
if (ret <= 0)
ret = 0;
if (ret < 0)
bool deleted;
int ret = 0;
if (ret == 0)
unsigned int i, count;
for (i = 0; i < count; i++) {
unsigned int count;
static struct mdbox_rebuild_msg *
const void *data;
bool expunged;
if (map_uid == 0) {
} T_END;
const void *data;
const char *name;
int ret;
if (ret <= 0) {
int ret = 0;
MAILBOX_NOSELECT)) == 0) {
T_BEGIN {
} T_END;
if (ret < 0) {
return ret;
int ret;
if (ret < 0)
if (ret <= 0) {
unsigned int i, count;
for (i = 0; i < count; i++) {
const void *data;
bool expunged;
unsigned int i, count;
struct dirent *d;
int ret = 0;
} T_END;
return ret;
const void *data;
FALSE) < 0)
int ret;
if (ret == 0) {
return ret;
int ret;
return ret;