dovecot-2.1: fs layout: Don't list subscriptions file as a mailbox.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jan 20 21:57:52 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/958ef86e7f5b
changeset: 13975:958ef86e7f5b
user: Timo Sirainen <tss at iki.fi>
date: Fri Jan 20 21:57:30 2012 +0200
description:
fs layout: Don't list subscriptions file as a mailbox.
diffstat:
src/lib-storage/list/mailbox-list-fs-iter.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 62c33ed5e357 -r 958ef86e7f5b src/lib-storage/list/mailbox-list-fs-iter.c
--- a/src/lib-storage/list/mailbox-list-fs-iter.c Fri Jan 20 21:13:00 2012 +0200
+++ b/src/lib-storage/list/mailbox-list-fs-iter.c Fri Jan 20 21:57:30 2012 +0200
@@ -177,7 +177,8 @@
/* non-absolute path. add the mailbox root dir as prefix. */
root = mailbox_list_get_path(ctx->ctx.list, NULL,
MAILBOX_LIST_PATH_TYPE_MAILBOX);
- path = t_strconcat(root, "/", path, NULL);
+ path = *path == '\0' ? root :
+ t_strconcat(root, "/", path, NULL);
}
*path_r = path;
return TRUE;
More information about the dovecot-cvs
mailing list