Commit b39b471f b39b471f069c3fb61402051575021c291674b929 by Sergey Poznyakoff

Bigfix in IMAP LIST

* imap4d/list.c (list_fun): List matching directories.
1 parent b3d82e99
...@@ -37,7 +37,9 @@ list_fun (mu_folder_t folder, struct mu_list_response *resp, void *data) ...@@ -37,7 +37,9 @@ list_fun (mu_folder_t folder, struct mu_list_response *resp, void *data)
37 size_t size; 37 size_t size;
38 char *p; 38 char *p;
39 39
40 if (refinfo->pfx->record && refinfo->pfx->record != resp->format) 40 if ((resp->type & MU_FOLDER_ATTRIBUTE_FILE)
41 && refinfo->pfx->record
42 && refinfo->pfx->record != resp->format)
41 return 0; 43 return 0;
42 44
43 name = resp->name; 45 name = resp->name;
......