dovecot: SUBSCRIBE/UNSUBSCRIBE was broken with namespace prefixes.

dovecot at dovecot.org dovecot at dovecot.org
Sun Jul 15 09:25:16 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/91c229e00772
changeset: 6011:91c229e00772
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Jul 15 07:20:29 2007 +0300
description:
SUBSCRIBE/UNSUBSCRIBE was broken with namespace prefixes.

diffstat:

1 file changed, 1 insertion(+), 2 deletions(-)
src/imap/cmd-subscribe.c |    3 +--

diffs (18 lines):

diff -r ed6c07975ccb -r 91c229e00772 src/imap/cmd-subscribe.c
--- a/src/imap/cmd-subscribe.c	Sun Jul 15 06:46:00 2007 +0300
+++ b/src/imap/cmd-subscribe.c	Sun Jul 15 07:20:29 2007 +0300
@@ -22,13 +22,12 @@ bool _cmd_subscribe_full(struct client_c
 		return TRUE;
 	}
 	storage = ns->storage;
-	verify_name += strlen(ns->prefix);
 
 	if ((client_workarounds & WORKAROUND_TB_EXTRA_MAILBOX_SEP) != 0 &&
 	    *mailbox != '\0' && mailbox[strlen(mailbox)-1] ==
 	    mail_storage_get_hierarchy_sep(storage)) {
 		/* verify the validity without the trailing '/' */
-		verify_name = t_strndup(mailbox, strlen(mailbox)-1);
+		verify_name = t_strndup(verify_name, strlen(verify_name)-1);
 	}
 
 	if (!client_verify_mailbox_name(cmd, verify_name, subscribe, FALSE))


More information about the dovecot-cvs mailing list