Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'You'll need the Mail::POP3Client module' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
You'll need the Mail::POP3Client module
Authored by: wal9000 on Mar 18, '02 07:22:48AM

This script works great! I'd been planning on writing something similar in Java or Perl but never got around to it... a big thank you to the author!

Note that the script uses the Mail::POP3Client module, which you can download from CPAN.org.

This hint forgets to mention that you have to open and edit the Perl script and enter your email server information: your login name, your email password, and the address of your POP mail server. There's also a place where you can enter in the age, in days, of messages to be deleted, but the script is actually hardcoded to deleting email that's 20 days or more old. To fix this, go to line 42 and change it from

if ( ($t0-$date) > 20*86400 ) {

to

if ( ($t0-$date) > $toold*86400 ) {

Handy little script.



[ Reply to This | # ]