From 2a2c53ae43c93500cf2a08717f573377751b840b Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sat, 4 Oct 2014 11:43:00 +0200 Subject: [PATCH] ignore INBOX only in Path itself, not its subfolders a box foo/INBOX cannot be mistaken for the INBOX, so there is no point in filtering these out. --- src/drv_maildir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drv_maildir.c b/src/drv_maildir.c index 0142631..cc2161f 100644 --- a/src/drv_maildir.c +++ b/src/drv_maildir.c @@ -233,7 +233,7 @@ maildir_list_recurse( store_t *gctx, int isBox, int *flags, const char *inbox, } else { if (isBox) continue; - if (!memcmp( ent, "INBOX", 6 )) { + if (!nameLen && !memcmp( ent, "INBOX", 6 )) { path[pathLen] = 0; warn( "Maildir warning: ignoring INBOX in %s\n", path ); continue;