home · contact · privacy
Use mailutils' mail as default mail sender.
[pingmail.git] / pingmailrc.example
1 # place for test files whose modification times are used to track lifesigns
2 testdir=$HOME'/.pingmail'
3
4 # modification time is the last time a ping was sent or a lifetime received
5 ping_touch=$testdir'/ping_touch'
6
7 # modification time is when the count for sending checker a warning mail starts
8 reminder_touch=$testdir'/reminder_touch'
9
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
12 wait_time=86400
13
14 # address of the checker, receives warning message after too long wait
15 checker_address='bar@example.org'
16
17 # address of the checked person, ping is sent here
18 checked_address='foo@example.org'
19
20 # content of ping message sent to checked person
21 subj2checked='[pingmail] Ping!'
22 msg2checked='Hi!\n
23 \nThis is an automated mail ping from '$checker_address'.
24 \nRespond to show that you are still alive!'
25
26 # content of warning message sent to checker
27 id_target='foo'
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.'
33
34 # mail client command reading message body from stdin and subject from parameter
35 mailclient_s='mail -s'
36
37 # mailbox file to check for most recent life sign
38 mbox=$HOME'/mail/foo'
39
40 # to recursively search for most recent matches to $matchstring as lifesigns
41 maildir=$HOME'/mail'
42
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)'