]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm copy: Don't require the extra mailbox+extra parameter checks as expunge/move...
authorTimo Sirainen <tss@iki.fi>
Wed, 23 Oct 2013 13:51:55 +0000 (16:51 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 23 Oct 2013 13:51:55 +0000 (16:51 +0300)
Perhaps they wouldn't be necessary even with move.

src/doveadm/doveadm-mail-copymove.c

index 3be9904c2da3ecefd8f2517b6caa3faa09f1853d..3260139217418989009a829b5fe1a8c23b03055e 100644 (file)
@@ -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)