doveadm-mail-search.c revision 212a8a25147882174df4b648ab2801c49b187808
/* Copyright (c) 2010-2014 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "mail-storage.h"
#include "doveadm-print.h"
#include "doveadm-mailbox-list-iter.h"
#include "doveadm-mail-iter.h"
#include "doveadm-mail.h"
#include <stdio.h>
static int
const struct mailbox_info *info)
{
struct doveadm_mail_iter *iter;
struct mailbox_metadata metadata;
const char *guid_str;
int ret = 0;
&iter) < 0)
return -1;
i_error("Couldn't get mailbox '%s' GUID: %s",
ret = -1;
} else {
T_BEGIN {
} T_END;
}
}
if (doveadm_mail_iter_deinit(&iter) < 0)
ret = -1;
return ret;
}
static int
{
const enum mailbox_list_iter_flags iter_flags =
struct doveadm_mailbox_list_iter *iter;
const struct mailbox_info *info;
int ret = 0;
ret = -1;
} T_END;
if (doveadm_mailbox_list_iter_deinit(&iter) < 0)
ret = -1;
return ret;
}
const char *const args[])
{
doveadm_mail_help_name("search");
}
static struct doveadm_mail_cmd_context *cmd_search_alloc(void)
{
struct doveadm_mail_cmd_context *ctx;
return ctx;
}
struct doveadm_mail_cmd cmd_search = {
};