From c10d7b092e684ddcff8c9ae865ca157ba6ba09c1 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 23 Oct 2013 16:51:55 +0300 Subject: [PATCH] doveadm copy: Don't require the extra mailbox+extra parameter checks as expunge/move requires. Perhaps they wouldn't be necessary even with move. --- src/doveadm/doveadm-mail-copymove.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.47.3