X-Git-Url: https://plomlompom.com/repos/?p=pingmail.git;a=blobdiff_plain;f=README;h=9ce62079a53cdebc7c1cccffb562c85fdf1f0843;hp=dfe825592b6ed53dc11207ad928759cf52ff6052;hb=HEAD;hpb=1b3fa2e791597ba751b18fb321b4fe918aa98cbb diff --git a/README b/README index dfe8255..9ce6207 100644 --- a/README +++ b/README @@ -1,6 +1,13 @@ Small shell script to regularly check a target person's responsiveness via mail. -Expects mutt to be usable for sending mails via command line. +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), @@ -17,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 -