cmd-copy.c (dovecot-2.3.16) | : | cmd-copy.c (dovecot-2.3.17) | ||
---|---|---|---|---|
skipping to change at line 312 | skipping to change at line 312 | |||
copy_ctx.destbox = destbox; | copy_ctx.destbox = destbox; | |||
if (destbox == client->mailbox || !move) | if (destbox == client->mailbox || !move) | |||
copy_ctx.srcbox = client->mailbox; | copy_ctx.srcbox = client->mailbox; | |||
else { | else { | |||
copy_ctx.srcbox = mailbox_alloc(mailbox_get_namespace(client->mai lbox)->list, | copy_ctx.srcbox = mailbox_alloc(mailbox_get_namespace(client->mai lbox)->list, | |||
mailbox_get_vname(client->mailbox ), 0); | mailbox_get_vname(client->mailbox ), 0); | |||
if (mailbox_sync(copy_ctx.srcbox, 0) < 0) { | if (mailbox_sync(copy_ctx.srcbox, 0) < 0) { | |||
mail_search_args_unref(&search_args); | mail_search_args_unref(&search_args); | |||
client_send_box_error(cmd, copy_ctx.srcbox); | client_send_box_error(cmd, copy_ctx.srcbox); | |||
mailbox_free(©_ctx.srcbox); | mailbox_free(©_ctx.srcbox); | |||
mailbox_free(&destbox); | ||||
return TRUE; | return TRUE; | |||
} | } | |||
} | } | |||
copy_ctx.move = move; | copy_ctx.move = move; | |||
i_array_init(©_ctx.src_uids, 8); | i_array_init(©_ctx.src_uids, 8); | |||
i_array_init(©_ctx.saved_uids, 8); | i_array_init(©_ctx.saved_uids, 8); | |||
if (move) { | if (move) { | |||
/* When moving mails, perform the work in batches of | /* When moving mails, perform the work in batches of | |||
MOVE_COMMIT_INTERVAL. Each such batch has its own | MOVE_COMMIT_INTERVAL. Each such batch has its own | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |