mailbox-list-index.c revision ff864b6e4499ad9b1cf821a0b87dbec800acd67a
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen/* Copyright (C) 2006 Timo Sirainen */
7fc0f80480063a9d4cb9e8c07b50db2a5627799eTimo Sirainen unsigned int pos;
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainen ARRAY_DEFINE(path, struct mailbox_list_iter_path);
const char *function)
const char *str)
if (ret < 0) {
0, &dotlock);
if (ret != 0) {
if (ret == 0) {
return ret;
int ret;
if (ret != 0) {
if (ret < 0)
return ret;
if (ret <= 0)
return ret;
int ret;
struct mailbox_list_index *
return index;
struct mailbox_list_index_lookup_key {
const char *name;
bool *failed;
const char **name_r)
const char *name;
const char *name;
int ret;
t_push();
t_pop();
return ret;
} while (cur_offset != 0);
const char *name,
if (failed)
const char *p, *hier_name;
int ret;
if (ret <= 0)
return ret;
if (p == NULL) {
if (dir_offset == 0)
int ret;
if (ret < 0)
return ret;
int ret;
if (ret == 0) {
return ret;
return ret;
struct mailbox_list_iter_ctx *
int ret;
(unsigned int)recurse_level;
if (ret < 0)
return ctx;
const char *name;
unsigned int count;
if (count == 0) {
t_push();
t_pop();
t_pop();