Subject: | $imap -> folders fails with empty argument |
Date: | Sun, 11 Nov 2007 15:23:30 +0100 |
To: | bug-Mail-IMAPClient [...] rt.cpan.org |
From: | "Gerald Richter - ECOS GmbH" <richter [...] ecos.de> |
Hi,
The following code fails in 2.99_04:
my $imap = Mail::IMAPClient->new(
Server => $host,
User => $user,
Password=> $pass,
) or die "Cannot connect to $host as $user: $@";
$imap -> select ('INBOX') or die "Cannot select $@" ;
my @folders = $imap->folders or die "Could not list folders: $@\n";
Changeing in IMAPClient.pm line 1516 from "or" to "and" fixes the
problem.
Gerald
------------------------------------------------------------------------
Gerald Richter ECOS electronic communication services GmbH
******************* SECURING YOUR NETWORK ********************
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de Fax: +49 6133 939-333
Sitz der Gesellschaft: Dienheim; AG Mainz HRB 6889
Geschäftsführer: Wolfgang Heck, Gerald Richter
------------------------------------------------------------------------
** Virus checked by BB-5000 Mailfilter **