doveadm-mail-altmove.c revision aec63d2712dc99ddae0507ccfe2c31858867ac4f
/* Copyright (c) 2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "mail-index.h"
#include "mail-storage.h"
#include "mail-namespace.h"
#include "mail-search-build.h"
#include "mail-search-parser.h"
#include "doveadm-mail-list-iter.h"
#include "doveadm-mail.h"
{
struct mail_search_parser *parser;
struct mail_search_args *sargs;
const char *error;
return sargs;
}
static int
{
struct mail_storage *storage;
struct mailbox_transaction_context *t;
struct mail_search_context *search_ctx;
const char *box_name;
int ret = 0;
return -1;
}
t = mailbox_transaction_begin(box, 0);
if (doveadm_debug)
}
if (mailbox_search_deinit(&search_ctx) < 0) {
ret = -1;
}
if (mailbox_transaction_commit(&t) < 0) {
ret = -1;
}
return ret;
}
{
}
}
{
const enum mailbox_list_iter_flags iter_flags =
struct mail_search_args *search_args;
struct doveadm_mail_list_iter *iter;
const struct mailbox_info *info;
struct mail_storage *const *storages;
unsigned int i, count;
doveadm_mail_help_name("altmove");
}
}
mailbox_free(&box);
}
/* make sure all private storages have been purged */
continue;
for (i = 0; i < count; i++) {
break;
}
if (i == count) {
}
}
}