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;