chiark / gitweb /
webstump: do not alter the moderator's post disposition when it differs from the...
[modbot-mtm.git] / stump / etc / posted_log
1 #!/bin/bash
2
3 set -e
4
5 # This file creates a little .posted_log file in your home 
6 # directory. Runs if activeated by crontab. See your crontab
7 # file for more details. 
8
9 # You may omit this file when initially setting up STUMP.
10
11 (
12   echo -n `date` "Number of articles: "
13   grep processApproved < $HOME/Mail/from | wc -l
14 ) >> $HOME/.posted_log
15
16 (
17 cat << _EOB_
18 The information below shows the total number of articles posted
19 for the last 10 days. The totals start with some date in the past.
20 What is important is daily differences between totals.
21
22 _EOB_
23
24 tail $HOME/.posted_log
25
26 )| mail -s "Number of posted Articles" $1