dovecot-1.2: listescape: Fixed listing INBOX when namespace pref...
dovecot at dovecot.org
dovecot at dovecot.org
Tue May 18 11:08:13 EEST 2010
details: http://hg.dovecot.org/dovecot-1.2/rev/5f0e937ae245
changeset: 9570:5f0e937ae245
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 2129667cb499 -r 5f0e937ae245 src/plugins/listescape/listescape-plugin.c
--- a/src/plugins/listescape/listescape-plugin.c Fri May 14 16:29:27 2010 +0200
+++ b/src/plugins/listescape/listescape-plugin.c Tue May 18 10:07:58 2010 +0200
@@ -179,6 +179,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