my $folder = $mgr->open('=in/new');
my @subs = $folder->listSubFolders;
my @subs = Mail::Box::IMAP4->listSubFolders(folder => '=in/new');
my @subs = Mail::Box::IMAP4->listSubFolders; # toplevel folders.
But if you are using local folders, don't you want Mail::Box::Mbox? (NB, the docs indicate that
mbox files "For MBOX folders, sub-folders are simulated."
If anyone needs me I'll be in the Angry Dome.
|