Your message dated Mon, 13 Jul 2009 01:51:44 +0200
with message-id <[email protected]>
and subject line Re: Bug#518236: libnet-imap-simple-perl: empty return value of
select() function
has caused the Debian Bug report #518236,
regarding libnet-imap-simple-perl: empty return value of select() function
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
518236: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518236
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libnet-imap-simple-perl
Version: 1.17-3
Severity: important
Tags: patch
The following example program (when supplied with correct IMAP servername
and username/password combination) returns an empty "$messages" variable
when run against an IMAP server. Variable $messages should contain the
number of messages on the server, but it doesn't:
$ cat imap.pl
#!/usr/bin/perl
use Net::IMAP::Simple;
my $imap = Net::IMAP::Simple->new('imapserver.example.org') ||
die "Unable to connect to IMAP: $Net::IMAP::Simple::errstr\n";
if(!$imap->login('correct-username','correct-password')){
print STDERR "Login failed: " . $imap->errstr . "\n";
exit(1);
}
my $messages = $imap->select('INBOX');
print $messages." messages\n";
$imap->quit;
This bug also affects lenny since it ships libnet-imap-simple-perl 1.17-3.
$ ./imap.pl # with broken Simple.pm (wrong)
messages
$ ./imap.pl # with patched Simple.pm (correct)
0 messages
With the following patch the function returns the correct value "0 messages".
--- /usr/share/perl5/Net/IMAP/Simple.pm.orig 2008-03-09 03:12:01.000000000
+0100
+++ /usr/share/perl5/Net/IMAP/Simple.pm 2009-03-04 23:46:35.000000000 +0100
@@ -252,7 +252,7 @@
}
}
},
- ) || return;
+ );
return $self->{last}
}
Regards,
Daniel
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (50, 'unstable'), (30, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libnet-imap-simple-perl depends on:
ii perl 5.10.0-19 Larry Wall's Practical Extraction
libnet-imap-simple-perl recommends no packages.
libnet-imap-simple-perl suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 1.1900-1
On Mon, 13 Jul 2009 01:12:54 +0200, Daniel Parthey wrote:
> version 1.1900-1 from Debian unstable fixes the problem.
> You can close the bug, thanks.
Thanks for the quick reply!
Cheers,
gregor (closing the bug)
--
.''`. http://info.comodo.priv.at/ -- GPG Key IDs: 0x00F3CFE4, 0x8649AA06
: :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/
`. `' Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
`- NP: Beatles: Revolution 9
signature.asc
Description: Digital signature
--- End Message ---