Explorar o código

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.
Oswald Buddenhagen %!s(int64=10) %!d(string=hai) anos
pai
achega
2a2c53ae43
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/drv_maildir.c

+ 1 - 1
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;