For Yandex imap, there is no support for nested folder structure.
Real folder structure
+A
|___B
|___C
|___D
Appears in the program
+A
- A | B
- A | C
- A | D
As I understand it, yandex uses the piple line " | " as a separator and the program cannot parse this