Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Mimetools (code)

by deprecated (Priest)
on May 14, 2001 at 19:51 UTC ( [id://80234]=note: print w/replies, xml ) Need Help??


in reply to Mimetools

The aforementioned Net::POP3 is a good module, although I prefer Mail::POP3Client. Here is a sample of its interface:
# taken from perldoc Mail::POP3Client... use Mail::POP3Client; $pop = new Mail::POP3Client( USER => "me", PASSWORD => "mypassword", HOST => "pop3.do.main" ); for( $i = 1; $i <= $pop->Count(); $i++ ) { foreach( $pop->Head( $i ) ) { /^(From|Subject):\s+/i && print $_, "\n"; } }
There are ample scripts about the monastery which deal with reading email and writing the file. You would do something like add this line to the above text:
open FILE, "filename" or die "no file! $!"; print FILE $pop -> Body( $i ); close FILE or warn "$!";

--
Laziness, Impatience, Hubris, and Generosity.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://80234]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found