chiark / gitweb /
Big changes to fully configure for group
[modbot-mtm.git] / stump / etc / posted_log
diff --git a/stump/etc/posted_log b/stump/etc/posted_log
new file mode 100755 (executable)
index 0000000..0f48c6c
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# This file creates a little .posted_log file in your home 
+# directory. Runs if activeated by crontab. See your crontab
+# file for more details. 
+
+# You may omit this file when initially setting up STUMP.
+
+(
+  echo -n `date` "Number of articles: "
+  grep processApproved < $HOME/Mail/from | wc -l
+) >> $HOME/.posted_log
+
+(
+cat << _EOB_
+The information below shows the total number of articles posted
+for the last 10 days. The totals start with some date in the past.
+What is important is daily differences between totals.
+
+_EOB_
+
+tail $HOME/.posted_log
+
+)| mail -s "Number of posted Articles" $1