
yim11
Novice
Jul 14, 2000, 12:48 PM
Post #1 of 2
(214 views)
|
|
How to list email messages?
|
Can't Post
|
|
I am looking for a way to list all the messages for a user. I have the following code that will login and save the messages to a txt file, but need to list all the messages, preferably by subject, but at this point I'll take anything I can get. TIA for any help!!!! -Jim ---------begin code-------------- use Mail::POP3Client; $mail =new mail::POP3Client("user", "password", "pop3.server.com"); if ($mail->Count) { print "$mail->Count, " new messages.\n"; print "Saving messages to email.txt\n"; open FILEHANDLE, ">email.txt"; for($loop_index = 1; $loop_index <= $mail->Count; $loop_index++) { print FILEHANDLE $mail->Body(1); } close FILEHANDLE; } ------------end code-----------------
|