Преглед на файлове

don't attempt to filter LIST response if there is no Path

we won't filter anything in that case anyway.
Oswald Buddenhagen преди 10 години
родител
ревизия
f385355bdb
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      src/drv_imap.c

+ 1 - 2
src/drv_imap.c

@@ -1090,8 +1090,7 @@ parse_list_rsp_p2( imap_store_t *ctx, list_t *list, char *cmd ATTR_UNUSED )
 		return LIST_BAD;
 	}
 	arg = list->val;
-	if (!is_inbox( ctx, arg )) {
-		l = strlen( ctx->prefix );
+	if (!is_inbox( ctx, arg ) && (l = strlen( ctx->prefix ))) {
 		if (memcmp( arg, ctx->prefix, l ))
 			goto skip;
 		arg += l;