Skip Menu |

This queue is for tickets about the Net-IMAP-Client CPAN distribution.

Report information
The Basics
Id: 39078
Status: resolved
Priority: 0/
Queue: Net-IMAP-Client

People
Owner: mihai.bazon [...] gmail.com
Requestors: pannel [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Module crash when mail server can not be contacted
Date: Mon, 8 Sep 2008 15:46:43 +1000
To: bug-Net-IMAP-Client [...] rt.cpan.org
From: Mark Spoelstra <pannel [...] gmail.com>
When the specified mail server can not be contacted the following error is thrown and the module crashes: Can't call method "getline" on an undefined value at /usr/lib/perl5/ site_perl/5.8.8/Net/IMAP/Client.pm line 281. (in cleanup) Can't call method "opened" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Net/IMAP/Client.pm line 42. Thanks very much. Regards, Mark
Resolved in 0.2.1 which should reach CPAN soon. The constructor will now return undef when connection failed so you can do: my $imap = Net::IMAP::Client->new( ... ) or die "can't connect to IMAP server"; HTH.
On Mon Sep 08 05:12:26 2008, MISHOO wrote: Show quoted text
> Resolved in 0.2.1 which should reach CPAN soon. The constructor will > now return undef when connection failed so you can do:
Scratch that, it will be 0.3 (looks like 0.2.1 is interpreted as a smaller version number and the PAUSE indexer failed).