From: Timo Sirainen Date: Wed, 23 Oct 2013 13:51:55 +0000 (+0300) Subject: doveadm copy: Don't require the extra mailbox+extra parameter checks as expunge/move... X-Git-Tag: 2.2.7~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c10d7b092e684ddcff8c9ae865ca157ba6ba09c1;p=thirdparty%2Fdovecot%2Fcore.git doveadm copy: Don't require the extra mailbox+extra parameter checks as expunge/move requires. Perhaps they wouldn't be necessary even with move. --- diff --git a/src/doveadm/doveadm-mail-copymove.c b/src/doveadm/doveadm-mail-copymove.c index 3be9904c2d..3260139217 100644 --- a/src/doveadm/doveadm-mail-copymove.c +++ b/src/doveadm/doveadm-mail-copymove.c @@ -152,7 +152,8 @@ static void cmd_copy_init(struct doveadm_mail_cmd_context *_ctx, ctx->destname = p_strdup(ctx->ctx.pool, destname); _ctx->search_args = doveadm_mail_build_search_args(args); - expunge_search_args_check(ctx->ctx.search_args, cmdname); + if (ctx->move) + expunge_search_args_check(ctx->ctx.search_args, cmdname); } static void cmd_copy_deinit(struct doveadm_mail_cmd_context *_ctx)