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
This commit is contained in:
Oswald Buddenhagen 2012-09-16 13:03:13 +02:00
parent 66895f9cce
commit c23d251092

View File

@ -713,7 +713,12 @@ store_opened( store_t *ctx, void *aux )
if (c != strinbox[i]) if (c != strinbox[i])
goto nextpat; 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; flags |= LIST_INBOX;
} else { } else {
nextpat: nextpat: