Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: jettero [...] cpan.org
Cc:
AdminCc:

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



Subject: bug in select() always selects inbox when it should select current
According to the documentation, methods like $self->recent with no arguments aught to use the current mailbox (cached if possible), but select() has a bug that selects INBOX if recent (or any other method) is called without an argument. To match the docs, one must use the attached patch.
Subject: select_bug.patch
--- /usr/local/share/perl/5.8.8/Net/IMAP/Simple.pm 2008-02-02 08:22:23.000000000 -0500 +++ ./Simple.pm 2008-02-02 08:21:37.000000000 -0500 @@ -221,7 +221,7 @@ sub select { my ( $self, $mbox ) = @_; - $mbox = 'INBOX' unless $mbox; + $mbox = $self->current_box unless $mbox; $self->{working_box} = $mbox;
fixed in 1.18 -- 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.