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
Download (untitled) / with headers
text/plain 289b
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
Download select_bug.patch
text/x-diff 314b
--- /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;
Download (untitled) / with headers
text/plain 148b
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.


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.