dovecot-2.1: mbox: If namespace prefix is used, don't show <pref...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Feb 17 12:03:33 EET 2013
details: http://hg.dovecot.org/dovecot-2.1/rev/b96df105ec55
changeset: 14907:b96df105ec55
user: Timo Sirainen <tss at iki.fi>
date: Sun Feb 17 12:03:06 2013 +0200
description:
mbox: If namespace prefix is used, don't show <prefix>/inbox mailbox.
diffstat:
src/lib-storage/list/mailbox-list-fs-iter.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 1713ffc870c1 -r b96df105ec55 src/lib-storage/list/mailbox-list-fs-iter.c
--- a/src/lib-storage/list/mailbox-list-fs-iter.c Sat Feb 16 19:06:18 2013 +0200
+++ b/src/lib-storage/list/mailbox-list-fs-iter.c Sun Feb 17 12:03:06 2013 +0200
@@ -707,6 +707,10 @@
ctx->info.flags |= MAILBOX_NOSELECT;
} else if ((ns->flags & NAMESPACE_FLAG_INBOX_ANY) != 0 &&
list_file_is_any_inbox(ctx, storage_name)) {
+ if ((ns->flags & NAMESPACE_FLAG_INBOX_USER) != 0) {
+ /* probably mbox inbox file */
+ return 0;
+ }
/* shared/user/INBOX */
ctx->info.flags &= ~(MAILBOX_NOSELECT | MAILBOX_NONEXISTENT);
ctx->info.flags |= MAILBOX_SELECT;
More information about the dovecot-cvs
mailing list