doveadm-mail-iter.c revision 1a3f9d72e15fb931edf58f104fb7ff12d238f051
/* Copyright (c) 2010-2012 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "mail-storage.h"
#include "mail-namespace.h"
#include "mail-search.h"
#include "doveadm-mail.h"
#include "doveadm-mail-iter.h"
struct doveadm_mail_iter {
struct doveadm_mail_cmd_context *ctx;
struct mail_search_args *search_args;
struct mailbox_transaction_context *t;
struct mail_search_context *search_ctx;
};
const struct mailbox_info *info,
struct mail_search_args *search_args,
const char *const *wanted_headers,
struct mailbox_transaction_context **trans_r,
struct doveadm_mail_iter **iter_r)
{
struct doveadm_mail_iter *iter;
struct mailbox_header_lookup_ctx *headers_ctx;
return -1;
}
return 0;
}
static int
bool commit)
{
int ret = 0;
i_error("Searching mailbox %s failed: %s",
ret = -1;
}
if (commit) {
if (mailbox_transaction_commit(&iter->t) < 0) {
i_error("Committing mailbox %s failed: %s",
ret = -1;
}
} else {
}
return ret;
}
static int
{
int ret;
if (ret < 0)
if (!keep_box)
return ret;
}
{
}
{
}
{
}
{
}
{
}