2001-01-02 18:58:20 -05:00
|
|
|
This module implements an Object-Oriented interface to a POP3 server.
|
|
|
|
It is based on RFC1081.
|
1998-05-17 00:16:20 -04:00
|
|
|
|
2001-01-02 18:58:20 -05:00
|
|
|
Here is a simple example to list out the headers in your remote
|
|
|
|
mailbox:
|
1998-05-17 00:16:20 -04:00
|
|
|
|
2001-01-02 18:58:20 -05:00
|
|
|
#!/usr/bin/perl
|
|
|
|
use Mail::POP3Client;
|
1998-05-17 00:16:20 -04:00
|
|
|
|
|
|
|
$pop = new Mail::POP3Client("me", "mypassword", "pop3.do.main");
|
2001-01-02 18:58:20 -05:00
|
|
|
for ($i = 1; $i <= $pop->Count; $i++) {
|
|
|
|
print $pop->Head($i), "\n";
|
|
|
|
}
|