Mail::IMAPClient folders($prefix)

Mail::IMAPClient folders($prefix)

am 25.03.2007 04:18:33 von robert.nicholson

Hi

can anybody tell me why

@folders = $m->folders($folderPrefix);
for $folder ($m->folders())
{
if ($folder =~ /^$folderPrefix/)
{
push @folders, $folder;
}
}


the first folders call fails... with

Use of uninitialized value in concatenation (.) or string at /lib/
perl5/site_perl/5.8.8/Mail/IMAPClient.pm line 2145.
at /lib/perl5/site_perl/5.8.8/Mail/IMAPClient.pm line 2145

I suspect it might be because the separator method doesn't work
correctly with Maildir folders?