in reply to Mimetools
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:# 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"; } }
open FILE, "filename" or die "no file! $!"; print FILE $pop -> Body( $i ); close FILE or warn "$!";
--
Laziness, Impatience, Hubris, and Generosity.
|
|---|