dovecot-2.2: doveadm copy: Don't require the extra mailbox+extra...

dovecot at dovecot.org dovecot at dovecot.org
Wed Oct 23 16:52:08 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/219f869cbd0d
changeset: 16877:219f869cbd0d
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 23 16:51:55 2013 +0300
description:
doveadm copy: Don't require the extra mailbox+extra parameter checks as expunge/move requires.
Perhaps they wouldn't be necessary even with move.

diffstat:

 src/doveadm/doveadm-mail-copymove.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r ade042b2161d -r 219f869cbd0d src/doveadm/doveadm-mail-copymove.c
--- a/src/doveadm/doveadm-mail-copymove.c	Wed Oct 23 16:50:57 2013 +0300
+++ b/src/doveadm/doveadm-mail-copymove.c	Wed Oct 23 16:51:55 2013 +0300
@@ -152,7 +152,8 @@
 
 	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)


More information about the dovecot-cvs mailing list