mailqueue.pl -- The Fetchmail Companion
Current Version: 1.0.1
About:
This perl script is a companion to either
fetchmail or etrn.pl
(which comes with sendmail and is also available via
fetchmail). I use this script on my home machine as a cron
job to get my mail hourly. It takes about 45 seconds to run
from start to finish if there is no mail.
This script was a learning experience for me on exec/fork, so
I go nuts. But here is what it does:
- If the computer is not connected, make the connection.
- Send all outgoing email using sendmail -q.
- Run or wake fetchmail (or the program of your choice).
- Watch the mqueue directory to determine when the data
transfer is complete.
- Run rtime if selected.
- Run suck if it is between midnight and 5 am (if selected).
- Break the connection if it was made by this script.
Installing:
Download mailqueue.pl
Just put the script in your path and edit the front of it to
suit your needs. You need to run it as root and can use the
'-d' option to get lots of output.
[Linux Links]
[News Sites]
[Slashdot]
[Freshmeat]
[Linuxapps]
Bill Adams
Last modified: Thu Dec 3 22:52:49 PST 1998