changeset 8307:2e24a3d8fcd9 HEAD

IMAP RENAME: If dest mailbox exists but source doesn't, fail with "Mailbox doesn't exist".
author Timo Sirainen <tss@iki.fi>
date Mon, 15 Jun 2009 21:22:30 -0400
parents 5d5a428e70cd
children f9c44dd6dc8b
files src/imap/cmd-rename.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 	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;