
180
|
Chapter 8, Desktop Programs
#57 Encrypt Your Email
HACK
run FetchYahoo again. It might take a number of runs to get all your email
transferred to your computer. You do not encounter this problem when
downloading only a few emails at regular intervals.
Automate FetchYahoo with cron
Most people who use email want to check it regularly. With this in mind,
you ideally want to run FetchYahoo every few minutes to update your mail
spool with new emails, but you don’t want to have to manually rerun the
command every time; repetitive tasks such as this are what computers are
for. To solve this problem, use cron to automate running the script
[Hack #70].
First, you should edit your crontab:
foo@bar:~$ crontab -e
If you want to run the fetchyahoo command every three minutes, you can
use the following cronjob:
*/3 * * * * /sources/fetchyahoo/fetchyahoo --configfile=/sources/fetchyahoo/
fetchyahoorc
In this cronjob, you are running the script every three minutes on every day,
month, and year. It includes a full path to the location of the script because
you have not installed the FetchYahoo script to your path, so you need to
specify its path to the system. You also need to give a full path to the loca-
tion of the configuration file.
HACK
#57
Encrypt Your Email Hack #57
Because you have a right to privacy.
We all seem to take email for granted these days. Although we are using it
for more and more things, we rarely ...