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

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


details:   http://hg.dovecot.org/dovecot-2.0/rev/9291253df6de
changeset: 9479:9291253df6de
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 4d46c8517a90 -r 9291253df6de src/imap/cmd-rename.c
--- a/src/imap/cmd-rename.c	Mon Jun 15 21:17:02 2009 -0400
+++ b/src/imap/cmd-rename.c	Mon Jun 15 21:22:30 2009 -0400
@@ -14,6 +14,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