[dovecot-cvs] dovecot/src/imap cmd-list.c,1.27,1.28 cmd-rename.c,1.4,1.5

cras at procontrol.fi cras at procontrol.fi
Sun Jul 27 09:37:15 EEST 2003


Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv15540

Modified Files:
	cmd-list.c cmd-rename.c 
Log Message:
fixes



Index: cmd-list.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/cmd-list.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- cmd-list.c	27 Jul 2003 04:48:32 -0000	1.27
+++ cmd-list.c	27 Jul 2003 05:37:13 -0000	1.28
@@ -6,6 +6,7 @@
 #include "imap-quote.h"
 #include "imap-match.h"
 #include "commands.h"
+#include "namespace.h"
 
 static const char *mailbox_flags2str(enum mailbox_flags flags, int listext)
 {
@@ -99,9 +100,8 @@
 	char sep_chr, sep[3];
 	int failed, listext;
 
-	storage = client_find_storage(client, "");
-	if (storage == NULL)
-		return TRUE;
+	/* FIXME: really needs some work.. */
+	storage = client->namespaces->storage;
 
 	sep_chr = storage->hierarchy_sep;
 	if (sep_chr == '"' || sep_chr == '\\') {

Index: cmd-rename.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/cmd-rename.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cmd-rename.c	27 Jul 2003 04:48:32 -0000	1.4
+++ cmd-rename.c	27 Jul 2003 05:37:13 -0000	1.5
@@ -25,7 +25,7 @@
 
 	if (old_storage != new_storage) {
 		client_send_tagline(client,
-			"NO Can't rename mailbox to another namespace.");
+			"NO Can't rename mailbox to another storage type.");
 		return TRUE;
 	}
 



More information about the dovecot-cvs mailing list