dovecot-2.0: listescape: Fixed listing INBOX when namespace pref...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 18 11:08:04 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/4ba05c3702be
changeset: 11317:4ba05c3702be
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 18 10:07:58 2010 +0200
description:
listescape: Fixed listing INBOX when namespace prefix was used.

diffstat:

 src/plugins/listescape/listescape-plugin.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 757cb3148407 -r 4ba05c3702be src/plugins/listescape/listescape-plugin.c
--- a/src/plugins/listescape/listescape-plugin.c	Mon May 17 18:06:57 2010 +0200
+++ b/src/plugins/listescape/listescape-plugin.c	Tue May 18 10:07:58 2010 +0200
@@ -177,6 +177,10 @@
 		ctx->list->ns :
 		listescape_find_orig_ns(ctx->list->ns, info->name);
 
+	if ((ns->flags & NAMESPACE_FLAG_INBOX) != 0 &&
+	    strcasecmp(info->name, "INBOX") == 0)
+		return info;
+
 	str_truncate(mlist->list_name, 0);
 	str_append(mlist->list_name, ns->prefix);
 	list_unescape_str(ns, info->name + ns->prefix_len, mlist->list_name);


More information about the dovecot-cvs mailing list