dovecot-2.2: imapc: Fixed check to see if prefix!="" in previous...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 24 05:57:23 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/459cced0a15d
changeset: 18887:459cced0a15d
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 24 07:54:35 2015 +0200
description:
imapc: Fixed check to see if prefix!="" in previous commit.

diffstat:

 src/lib-storage/index/imapc/imapc-list.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e6cb25855abf -r 459cced0a15d src/lib-storage/index/imapc/imapc-list.c
--- a/src/lib-storage/index/imapc/imapc-list.c	Tue Jun 23 11:31:21 2015 +0200
+++ b/src/lib-storage/index/imapc/imapc-list.c	Wed Jun 24 07:54:35 2015 +0200
@@ -696,7 +696,7 @@
 			return NULL;
 	} while ((node->flags & MAILBOX_MATCHED) == 0);
 
-	if (ctx->info.ns->prefix > 0 &&
+	if (ctx->info.ns->prefix_len > 0 &&
 	    strncmp(vname, ctx->info.ns->prefix, ctx->info.ns->prefix_len-1) == 0 &&
 	    vname[ctx->info.ns->prefix_len] == '\0' &&
 	    list->set->imapc_list_prefix[0] == '\0') {


More information about the dovecot-cvs mailing list