45312f52ff3a3d4c137447be4c7556500c2f8bf2Timo Sirainen/* Copyright (c) 2005-2018 Dovecot authors, see the included COPYING file */
128ab2c52a29068be87e12ab5aebbb8fdc933adfTimo Sirainenint mailbox_guid_cache_find(struct mailbox_list *list,
128ab2c52a29068be87e12ab5aebbb8fdc933adfTimo Sirainen if (!hash_table_is_created(list->guid_cache) ||
128ab2c52a29068be87e12ab5aebbb8fdc933adfTimo Sirainen rec = hash_table_lookup(list->guid_cache, guid_p);
128ab2c52a29068be87e12ab5aebbb8fdc933adfTimo Sirainen rec = hash_table_lookup(list->guid_cache, guid_p);
128ab2c52a29068be87e12ab5aebbb8fdc933adfTimo Sirainen if (rec == NULL && list->guid_cache_updated) {
128ab2c52a29068be87e12ab5aebbb8fdc933adfTimo Sirainen rec = hash_table_lookup(list->guid_cache, guid_p);
128ab2c52a29068be87e12ab5aebbb8fdc933adfTimo Sirainenvoid mailbox_guid_cache_refresh(struct mailbox_list *list)
128ab2c52a29068be87e12ab5aebbb8fdc933adfTimo Sirainen if (!hash_table_is_created(list->guid_cache)) {
7b9f0c6aba07358e5520dc60c058126a4cae4056Timo Sirainen hash_table_create(&list->guid_cache, list->guid_cache_pool, 0,
128ab2c52a29068be87e12ab5aebbb8fdc933adfTimo Sirainen while ((info = mailbox_list_iter_next(ctx)) != NULL) {
&metadata) < 0) {