dovecot-2.2: lib-storage: mailbox_rename() shouldn't require sou...

dovecot at dovecot.org dovecot at dovecot.org
Wed Mar 20 17:44:16 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/d44ae1527bc0
changeset: 16058:d44ae1527bc0
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Mar 20 17:43:32 2013 +0200
description:
lib-storage: mailbox_rename() shouldn't require source mailbox to exist.
\Noselect mailboxes may not exist. The nonexistence will be noticed
eventually in the backend code.

diffstat:

 src/lib-storage/mail-storage.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 653d81709dd0 -r d44ae1527bc0 src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c	Wed Mar 20 17:10:47 2013 +0200
+++ b/src/lib-storage/mail-storage.c	Wed Mar 20 17:43:32 2013 +0200
@@ -1359,7 +1359,8 @@
 {
 	const char *error = NULL;
 
-	if (mailbox_verify_existing_name(src) < 0)
+	/* Check only name validity, \Noselect don't necessarily exist. */
+	if (mailbox_verify_name(src) < 0)
 		return -1;
 	if (*src->name == '\0') {
 		mail_storage_set_error(src->storage, MAIL_ERROR_PARAMS,


More information about the dovecot-cvs mailing list