X-Git-Url: https://plomlompom.com/repos/?p=pingmail.git;a=blobdiff_plain;f=README;h=9ce62079a53cdebc7c1cccffb562c85fdf1f0843;hp=24f1892353ecc90d08d5a4aeaf2c366ab9914a40;hb=HEAD;hpb=9f8ae1a3603fc36b53132563fab11cd86631562e diff --git a/README b/README index 24f1892..9ce6207 100644 --- a/README +++ b/README @@ -1,5 +1,14 @@ Small shell script to regularly check a target person's responsiveness via mail. +When run as "pingmail check", tries to derive the last time a person sent a +mail to the local system by either a) searching a maildir for the most recent +file matching a regex pattern (such as a "From: " field matching the target +person), and looking at thta file's modification time, or b) checking the +modification time of a defined mailbox file. If that point in time is too +distant, sends an e-mail to the target person requesting some sign of life. +After some more wait time without a sign of life, sends a warning message to +another mail address that target person is unresponsive. + When run as "pingmail check", searches a maildir for the most recent file matching a regex pattern (such as a "From: " field matching the target person), and if the most recent file is too old, sends an e-mail to the target person @@ -15,5 +24,5 @@ pingmailrc.example file for more details. To install as an hourly cronjob, define $path_to_pingmail_script_file, then do: -line='0 * * * * '$path_to_pingmail_script_file' check' -(crontab -l; echo $line) | crontab - +line='0 * * * * '$path_to_pingmail_script_file' check > /dev/null' +(crontab -l; echo "$line") | crontab -