Skip to content

Children/subfolders is empty but hasChildren is true #453

@netkant

Description

@netkant

Describe the bug
$folder->getChildren()->total() is 0

Used config
See code to reproduce (maybe I'm doing something wrong?)

Code to Reproduce
The troubling code section which produces the reported bug.

$cm = new ClientManager([ 'accounts' => [ 'myaccount' => [ 'host' => 'myhost.com', 'port' => 993, 'protocol' => 'imap', 'encryption' => 'ssl', 'username' => 'myusername', 'password' => 'mypassword', ] ] ]); $client = $cm->account('myaccount'); $folder = $client->getFolder('TestFolder'); var_dump($folder->hasChildren()); // bool(true) var_dump($folder->getChildren()->total()); // int(0) <-- bug? 

Expected behavior
In my case I expect var_dump($folder->getChildren()->total()); to be int(1)

Desktop / Server (please complete the following information):

  • OS: Linux Server Debian
  • PHP: 8.2.10 (fpm)
  • Provider: Gmail / Mailcow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions