Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

X Report information
Id: 39078
Status: resolved
Left: 0 min
Priority: 0/0
Queue: Net-IMAP-Client

Owner: MISHOO <mihai.bazon [...] gmail.com>
Requestors: pannel [...] gmail.com
Cc:
AdminCc:

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



X History Display mode: Brief headersFull headers
#   Mon Sep 08 01:47:10 2008 pannel[...]gmail.com - Ticket created  
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>
[text/plain 394b]
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

#   Mon Sep 08 05:12:26 2008 MISHOO - Correspondence added  
[text/plain 217b]
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.
#   Mon Sep 08 05:12:36 2008 RT_System - Status changed from 'new' to 'open'  
#   Mon Sep 08 05:12:42 2008 MISHOO - Status changed from 'open' to 'resolved'  
#   Mon Sep 08 05:12:46 2008 MISHOO - Given to MISHOO  
#   Mon Sep 08 05:30:02 2008 MISHOO - Correspondence added  
[text/plain 293b]
On Mon Sep 08 05:12:26 2008, MISHOO wrote:
> 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).
#   Mon Sep 08 05:30:06 2008 RT_System - Status changed from 'resolved' to 'open'  
#   Mon Sep 08 06:55:37 2008 MISHOO - Status changed from 'open' to 'resolved'