dovecot-1.0: CREATE ns_prefix/box/ didn't work right when namesp...

dovecot at dovecot.org dovecot at dovecot.org
Tue Aug 14 22:46:34 EEST 2007


details:   http://hg.dovecot.org/dovecot-1.0/rev/33690bb286af
changeset: 5384:33690bb286af
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Aug 14 22:46:30 2007 +0300
description:
CREATE ns_prefix/box/ didn't work right when namespace prefix existed.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/imap/cmd-create.c |    4 ++--

diffs (14 lines):

diff -r a0c3daf7e501 -r 33690bb286af src/imap/cmd-create.c
--- a/src/imap/cmd-create.c	Mon Aug 13 18:00:18 2007 +0300
+++ b/src/imap/cmd-create.c	Tue Aug 14 22:46:30 2007 +0300
@@ -28,8 +28,8 @@ bool cmd_create(struct client_command_co
 		   informing us that it wants to create children under this
 		   mailbox. */
                 directory = TRUE;
-		mailbox = t_strndup(mailbox, len-1);
-		full_mailbox = t_strndup(full_mailbox, strlen(full_mailbox)-1);
+		mailbox = t_strndup(mailbox, strlen(mailbox)-1);
+		full_mailbox = t_strndup(full_mailbox, len-1);
 	}
 
 	if (!client_verify_mailbox_name(cmd, full_mailbox, FALSE, TRUE))


More information about the dovecot-cvs mailing list