Subject: | Mail::Box::IMAP4 requires authentication method to be specified |
The following code snippet (with appropriate login credentials
specified):
use Mail::Box::IMAP4;
my $folder= new Mail::Box::IMAP4(server_name => 'localhost',
username => 'USER',
password => 'PASS',
folder => 'Inbox');
print $folder->nrMessages, " messages\n";
results in the following errors repeated periodically:
Use of uninitialized value $auth in string ne at
/usr/lib/perl5/site_perl/5.10.0/Mail/IMAPClient.pm line 330.
Use of uninitialized value $scheme in concatenation (.) or string at
/usr/lib/perl5/site_perl/5.10.0/Mail/IMAPClient.pm line 2506.
I haven't traced how the authentication settings are supposed to be
passed through all of the intervening modules, but adding the following
to the "new Mail::Box::IMAP4(...)" arguments results in this code
snippet working as expected:
authenticate => 'LOGIN'
There doesn't appear to be anything in the documentation suggesting that
this should be necessary, so presumably it is a bug.
This is with the following package versions:
Mail-Box-2.086
Mail-IMAPClient-3.12
Perl version:
5.10.0
Operating system:
SuSE Linux 9.0 kernel 2.4.21-303