dovecot-1.1: IMAP RENAME: If dest mailbox exists but source does...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jun 16 04:22:45 EEST 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/2e24a3d8fcd9
changeset: 8307:2e24a3d8fcd9
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 15 21:22:30 2009 -0400
description:
IMAP RENAME: If dest mailbox exists but source doesn't, fail with "Mailbox doesn't exist".
diffstat:
1 file changed, 2 insertions(+)
src/imap/cmd-rename.c | 2 ++
diffs (12 lines):
diff -r 5d5a428e70cd -r 2e24a3d8fcd9 src/imap/cmd-rename.c
--- a/src/imap/cmd-rename.c Mon Jun 15 21:03:08 2009 -0400
+++ b/src/imap/cmd-rename.c Mon Jun 15 21:22:30 2009 -0400
@@ -16,6 +16,8 @@ bool cmd_rename(struct client_command_co
if (!client_read_string_args(cmd, 2, &oldname, &newname))
return FALSE;
+ if (!client_verify_mailbox_name(cmd, oldname, TRUE, FALSE))
+ return TRUE;
if (!client_verify_mailbox_name(cmd, newname, FALSE, TRUE))
return TRUE;
More information about the dovecot-cvs
mailing list