Skip to Main Content
Linux Desktop Hacks
book

Linux Desktop Hacks

by Nicholas Petreley, Jono Bacon
March 2005
Beginner to intermediate content levelBeginner to intermediate
342 pages
15h 55m
English
O'Reilly Media, Inc.
Content preview from Linux Desktop Hacks
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Server Hacks, Volume Two

Linux Server Hacks, Volume Two

William von Hagen, Brian K. Jones
Introducing Linux Distros

Introducing Linux Distros

Jose Dieguez Castro

Publisher Resources

ISBN: 0596009119Supplemental ContentCatalog PageErrata