I am not exactly sure where to put this so I'll put it here...
#!/usr/bin/perl -w
###############################################################
# Very, Very basic Pop3 mail reader written by
# David Middleton dmm@isp9.net
# 10/19/00
#
# I wrote this because all the pop3 perl programs are
# either too lame for me to use or are too complex for
# me to understand... All I want to do is make a simple
# web based e-mail program. Is this too much to ask?
#
# Feel free to use, modify, distribute, laugh at...
#
# P.S. This requires the Pop3 perl module.
# If you don't have it, go to www.cpan.org
use Mail::POP3Client;
################################################################
# Grab user name, password and pop3 server from the command line
# and log onto the mail server.
$user = $ARGV[0];
$pass = $ARGV[1];
$srvr = $ARGV[2];
$mail = new Mail::POP3Client($user, $pass, $srvr);
#####################################################
# Make sure that everything is ok with the connection
$MailState = $mail->State;
if($MailState eq 'AUTHORIZATION') {
die "\n\nBad user name or password!\n" }
elsif($MailState eq 'DEAD') {
die "\n\nMail server unreachable or unavailable!\n" }
####################################
# Print the # of messages then pause
print "You have ", $mail->Count, " new message(s).\n\n";
print "Press any key to continue...\n\n";
$anykey =
Edit: 2001-03-03 by [neshura]