dovecot-2.0: IMAP: Fixed LIST RETURN (STATUS ..) if namespace se...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 12 19:52:55 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/7b6fe859ec64
changeset: 9467:7b6fe859ec64
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jun 12 12:52:38 2009 -0400
description:
IMAP: Fixed LIST RETURN (STATUS ..) if namespace separator wasn't storage separator.

diffstat:

1 file changed, 2 insertions(+), 5 deletions(-)
src/imap/cmd-list.c |    7 ++-----

diffs (17 lines):

diff -r 3111c362edff -r 7b6fe859ec64 src/imap/cmd-list.c
--- a/src/imap/cmd-list.c	Fri Jun 12 12:52:03 2009 -0400
+++ b/src/imap/cmd-list.c	Fri Jun 12 12:52:38 2009 -0400
@@ -311,11 +311,8 @@ static void list_send_status(struct cmd_
 {
 	struct mailbox_status status;
 	const char *storage_name, *error;
-	size_t prefix_len = strlen(ctx->ns->prefix);
-
-	storage_name = strncmp(name, ctx->ns->prefix, prefix_len) == 0 ?
-		name + prefix_len : name;
-
+
+	storage_name = mail_namespace_get_storage_name(ctx->ns, name);
 	if (imap_status_get(ctx->cmd->client, ctx->ns, storage_name,
 			    ctx->status_items, &status, &error) < 0) {
 		client_send_line(ctx->cmd->client,


More information about the dovecot-cvs mailing list