doveadm-mail-list-iter.c revision 24276873986553ddb10deb11d66fa9652f4678df
/* Copyright (c) 2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "str.h"
#include "mail-search.h"
#include "mail-namespace.h"
#include "mailbox-list.h"
#include "doveadm-mail-list-iter.h"
struct doveadm_mail_list_iter {
struct mail_search_args *search_args;
struct mailbox_list_iterate_context *iter;
};
static void
{
const struct mail_search_arg *subargs;
case SEARCH_OR:
case SEARCH_SUB:
case SEARCH_INTHREAD:
patterns);
}
break;
case SEARCH_MAILBOX:
case SEARCH_MAILBOX_GLOB:
break;
default:
break;
}
}
}
struct doveadm_mail_list_iter *
struct mail_search_args *search_args,
{
static const char *all_pattern = "*";
struct doveadm_mail_list_iter *iter;
if (array_count(&patterns) == 0) {
} else {
}
(void)array_append_space(&patterns);
return iter;
}
{
i_error("Listing mailboxes failed");
}
const struct mailbox_info *
{
const struct mailbox_info *info;
break;
}
return info;
}