home · contact · privacy
Use mailutils' mail as default mail sender.
[pingmail.git] / README
1 Small shell script to regularly check a target person's responsiveness via mail.
2
3 When run as "pingmail check", tries to derive the last time a person sent a
4 mail to the local system by either a) searching a maildir for the most recent
5 file matching a regex pattern (such as a "From: " field matching the target
6 person), and looking at thta file's modification time, or b) checking the
7 modification time of a defined mailbox file. If that point in time is too
8 distant, sends an e-mail to the target person requesting some sign of life.
9 After some more wait time without a sign of life, sends a warning message to
10 another mail address that target person is unresponsive.
11
12 When run as "pingmail check", searches a maildir for the most recent file
13 matching a regex pattern (such as a "From: " field matching the target person),
14 and if the most recent file is too old, sends an e-mail to the target person
15 requesting some sign of life. After some more wait time without a sign of life,
16 sends a warning message to another mail address that target person is
17 unresponsive.
18
19 The wait time counter can be reset manually with "pingmail touch".
20
21 The wait time, the target and checking persons' mail addresses, the regex, the
22 maildir path etc. must be set in a dotfile ~/.pingmailrc. See comments in
23 pingmailrc.example file for more details.
24
25 To install as an hourly cronjob, define $path_to_pingmail_script_file, then do:
26
27 line='0 * * * * '$path_to_pingmail_script_file' check > /dev/null'
28 (crontab -l; echo "$line") | crontab -