dovecot-1.2: IMAP RENAME: If dest mailbox exists but source does...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 16 04:22:38 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/67fe18c3f8dd
changeset: 9134:67fe18c3f8dd
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 6f36829c9e0e -r 67fe18c3f8dd src/imap/cmd-rename.c
--- a/src/imap/cmd-rename.c	Mon Jun 15 21:15:37 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