Respondendo a mim mesmo depois de pesquisar IMAP::Admin
#!/usr/bin/perl
use IMAP::Admin;
$imap = IMAP::Admin->new('Server' => 'localhost',
'Login' => 'cyrus',
'Password' => 'cyrus',
);
my $finduser = "root"; # the user you search for
my @mailboxes = $imap->list("user.%");
foreach my $mailbox (@mailboxes) {
my %list = $imap->get_acl($mailbox);
if (defined($list{$finduser})) {
print $mailbox."\n";
}
}