dovecot: CREATE ns_prefix/box/ didn't work right when namespace ...

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


details:   http://hg.dovecot.org/dovecot/rev/f5782901930b
changeset: 6298:f5782901930b
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Aug 14 22:46:29 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 3f6fadbe6888 -r f5782901930b src/imap/cmd-create.c
--- a/src/imap/cmd-create.c	Mon Aug 13 20:25:26 2007 +0300
+++ b/src/imap/cmd-create.c	Tue Aug 14 22:46:29 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