1 # place for test files whose modification times are used to track lifesigns
2 testdir=$HOME'/.pingmail'
4 # modification time is the last time a ping was sent or a lifetime received
5 ping_touch=$testdir'/ping_touch'
7 # modification time is when the count for sending checker a warning mail starts
8 reminder_touch=$testdir'/reminder_touch'
10 # how long to wait for lifesigns before sending a ping; double is time to wait
11 # for a lifesign before sending a warning message to checker
14 # address of the checker, receives warning message after too long wait
15 checker_address='bar@example.org'
17 # address of the checked person, ping is sent here
18 checked_address='foo@example.org'
20 # content of ping message sent to checked person
21 subj2checked='[pingmail] Ping!'
23 \nThis is an automated mail ping from '$checker_address'.
24 \nRespond to show that you are still alive!'
26 # content of warning message sent to checker
28 subj2checker='[pingmail] No recent life signs from '$id_target
29 reminder_time=`expr $wait_time \* 2`
30 msg2checker='pingmail reporting in:\n
31 \nNo life signs from '$id_target' for the last '$reminder_time' seconds.
32 \nMaybe you should give them a call to check if they are okay.'
34 # mail client command reading message body from stdin and subject from parameter
35 mailclient_s='mail -s'
37 # mailbox file to check for most recent life sign
40 # to recursively search for most recent matches to $matchstring as lifesigns
43 # pattern to search $maildir for recursively for lifesigns
44 checked_address_escaped=`echo $checked_address | sed 's/\./\\./g'`
45 matchstring='^From: .*('$checked_address_escaped'|alternate@example\.org)'