commit c23d251092beaf52991daf3a0e8af3403a5edf12
parent 66895f9cced05e72d8e2668636e25bacf073534a
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date: Sun, 16 Sep 2012 13:03:13 +0200
consider hierarchy delimiter flattening when deciding what to list
flattened sub-folders of INBOX actually end up in Path, so list that
instead.
REFMAIL: 6c0ecbff0d025387020281c5d2f5e6e8@smallsys.org
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
@@ -713,8 +713,13 @@ store_opened( store_t *ctx, void *aux )
if (c != strinbox[i])
goto nextpat;
}
- if (!c || c == '/') {
+ if (!c) {
flags |= LIST_INBOX;
+ } else if (c == '/') {
+ if (ctx->conf->flat_delim)
+ flags |= LIST_PATH;
+ else
+ flags |= LIST_INBOX;
} else {
nextpat:
flags |= LIST_PATH;