[dovecot-cvs] dovecot/src/imap cmd-subscribe.c,1.14,1.14.2.1

cras at dovecot.org cras at dovecot.org
Sun Jun 11 20:51:04 EEST 2006


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv11344

Modified Files:
      Tag: branch_1_0
	cmd-subscribe.c 
Log Message:
If tb-extra-mailbox-sep workaround was enabled, subscribing was broken
unless the namespace had empty prefix.



Index: cmd-subscribe.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-subscribe.c,v
retrieving revision 1.14
retrieving revision 1.14.2.1
diff -u -d -r1.14 -r1.14.2.1
--- cmd-subscribe.c	13 Jan 2006 20:25:59 -0000	1.14
+++ cmd-subscribe.c	11 Jun 2006 17:51:02 -0000	1.14.2.1
@@ -23,15 +23,15 @@
 		if (mailbox[strlen(mailbox)-1] ==
 		    mail_storage_get_hierarchy_sep(storage))
 			verify_name = t_strndup(mailbox, strlen(mailbox)-1);
+	} else {
+		storage = client_find_storage(cmd, &mailbox);
+		if (storage == NULL)
+			return TRUE;
 	}
 
 	if (!client_verify_mailbox_name(cmd, verify_name, subscribe, FALSE))
 		return TRUE;
 
-	storage = client_find_storage(cmd, &mailbox);
-	if (storage == NULL)
-		return TRUE;
-
 	if (mail_storage_set_subscribed(storage, mailbox, subscribe) < 0)
 		client_send_storage_error(cmd, storage);
 	else {



More information about the dovecot-cvs mailing list