Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9134:67fe18c3f8dd 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 | 6f36829c9e0e |
children | 39c234ab0b21 |
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:15:37 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;