mailbox-guid-cache.c revision bd4e36a8cd7257cca7d1434c49a1e343ed7c5100
/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "hash.h"
#include "mail-storage.h"
#include "mailbox-list-private.h"
#include "mailbox-guid-cache.h"
struct mailbox_guid_cache_rec {
const char *vname;
};
static unsigned int guid_cache_rec_hash(const void *_rec)
{
unsigned int i, g, h = 0;
if ((g = h & 0xf0000000UL)) {
h = h ^ (g >> 24);
h = h ^ g;
}
}
return h;
}
{
}
const char **vname_r)
{
const struct mailbox_guid_cache_rec *rec;
struct mailbox_guid_cache_rec lookup_rec;
} else {
}
}
}
return 0;
}
{
struct mailbox_list_iterate_context *ctx;
const struct mailbox_info *info;
struct mailbox_metadata metadata;
struct mailbox_guid_cache_rec *rec;
list->guid_cache_pool, 0,
} else {
}
(MAILBOX_NOSELECT | MAILBOX_NONEXISTENT)) != 0)
continue;
&metadata) < 0) {
i_error("Couldn't get mailbox %s GUID: %s",
} else {
struct mailbox_guid_cache_rec, 1);
}
mailbox_free(&box);
}
if (mailbox_list_iter_deinit(&ctx) < 0)
}