Skip Menu |
 

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

Report information
The Basics
Id: 20311
Status: resolved
Priority: 0/
Queue: Net-IMAP-Simple

People
Owner: jettero [...] cpan.org
Requestors: advax [...] triumf.ca
Cc:
AdminCc:

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



Subject: SELECT errors are ignored
Download (untitled) / with headers
text/plain 327b
In the README, it says that if select() fails, undef is returned. However, it is not. If an IMAP response such as 59 NO Can't open .xauth/refcount: not a selectable mailbox is received, select returns a value of 1 (possibly cached or left from a previously successful operation.) errstr, if read, contains "SELECT failed: ..."
Download (untitled) / with headers
text/plain 423b
On Wed Jul 05 19:46:16 2006, guest wrote: Show quoted text
> In the README, it says that if select() fails, undef is returned. > However, it is not. > If an IMAP response such as > 59 NO Can't open .xauth/refcount: not a selectable mailbox > is received, select returns a value of 1 (possibly cached or > left from a previously successful operation.) > errstr, if read, contains "SELECT failed: ..."
Are you still experiencing this error?
Subject: Re: [rt.cpan.org #20311] SELECT errors are ignored
Date: Thu, 12 Oct 2006 00:24:41 -0700 (PDT)
To: via RT <bug-Net-IMAP-Simple [...] rt.cpan.org>
From: Andrew Daviel <advax [...] triumf.ca>
Download (untitled) / with headers
text/plain 1.1k
On Wed, 11 Oct 2006, via RT wrote: Show quoted text
> > Are you still experiencing this error?
Yes. use Net::IMAP::Simple; $imap = Net::IMAP::Simple->new($server) ; * OK [CAPABILITY .... $nmsgs = $imap->login( $user,$passwd) ; # returns 1 0 LOGIN andrew ... 0 OK [CAPABILITY ... $last = $imap->last; # returns null $recent = $imap->recent ; # returns 0 1 SELECT "INBOX" * 418 EXISTS $box1 = 'nosuchfile' ; $nmsgs2 = $imap->select($box1) ; # returns 418 2 SELECT "nosuchfile" 2 NO Can't open mailbox nosuchfile: no such mailbox $errstr = $imap->errstr ; # returns "Can't open mailbox nosuchfile: no such mailbox" $recent = $imap->recent ; 4 SELECT "INBOX" * 418 EXISTS $errstr = $imap->errstr ; # returns "unknown return string: * OK [UNSEEN 94] first unseen message in INBOX" $last= $imap->last; # returns 418 $errstr = $imap->errstr ; # returns "unknown return string: * OK [UNSEEN 94] first unseen message in INBOX" $imap->quit; 5 EXPUNGE 5 OK No messages deleted, so no update needed 6 LOGOUT * BYE ... 6 OK LOGOUT completed -- Andrew Daviel, TRIUMF, Canada
Download (untitled) / with headers
text/plain 219b
I believe this is solved and proved by test in 1.1899_01 (available on github only). -- If riding in an airplane is flying, then riding in a boat is swimming. 107 jumps, 43.5 minutes of freefall, 83.4 freefall miles.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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