spewn
Programmer
- May 7, 2001
- 1,034
hello!
here's my code:
seems to find the message in there, but doesn't do anything more. here's the output:
Message is bytes long. Retrieving : failed ()
Seems to me that it finds the 1 email in the box or it wouldn't get to the "message is bytes" section, right?
i'm trying to pull all the info, from, subject, message, date and organize neatly...of course!
thanks.
- gus
here's my code:
Code:
$pop = Net::POP3->new( "pop.myserver.com" ) or die "Can't connect to pop.myserver.com: $!\n";
$username='myaccount@email.com';
$password='test2pass';
defined ($pop->login($username, $password));
defined ($pop->login());
%undeleted = $pop->list();
foreach $msgnum (keys %undeleted) {
print "Message $msgnum is $undeleted{$msgnum} bytes long.\n";
print "Retrieving $msgnum : ";
$message = $pop->get($msgnum);
if ($message) {
print "\n";
print @$message;
}
else {
print "failed ($!)\n";
}
}
seems to find the message in there, but doesn't do anything more. here's the output:
Message is bytes long. Retrieving : failed ()
Seems to me that it finds the 1 email in the box or it wouldn't get to the "message is bytes" section, right?
i'm trying to pull all the info, from, subject, message, date and organize neatly...of course!
thanks.
- gus