Front page | perl.libnet |
Postings from July 2003
From: Lev Altshuler
July 6, 2003 19:13
Message ID: email@example.com
I am trying to count email messages in the mailbox and read their headers.
In case that there are some messages on the POP3 server and
they haven't yet got to the Inbox, I get a number of messages.
As soon as they have been in the Inbox, I get '0E0' as a number of messages.
What feature of Net::POP3 am I unaware of, or
where did I screw up in the code?
my $server = "pop.bloor.phub.net.cable.rogers.com";
my $pop3 = Net::POP3->new($server, Timeout => 10, Debug =>1);
die "Couldn't log on to server" unless $pop3;
my $user = "levalt\@rogers.com";
my $password = "password";
my $num_Messages = $pop3->login($user, $password);
by Lev Altshuler