4 # $Id: report.sh,v 1.2 2007/05/03 23:47:49 rram Exp $
5 # Modified to work with GPG
11 DATE6="`date +%y%m%d`"
13 LOGFILE="$HOME/Mail/from"
14 LOGFILE_ARCHIVED="$MNG_ROOT/archive/old/from.$DATE6"
17 echo Subject: $NEWSGROUP report for $TODAY
18 echo Newsgroups: $NEWSGROUP
22 echo Organization: CrYpToRoBoMoDeRaToR CaBaL
26 echo Subject: $NEWSGROUP report for $TODAY
27 echo Newsgroups: $NEWSGROUP
32 This is an automated report about activity of our newsgroup
33 $NEWSGROUP. It covers period between the
34 previous report and the current one, ending
37 Note that we do not report the number of articles cancelled
38 after they got approved, because the cancellations are done
39 manually. Typically messages get cancelled by requests of
42 Lastly, the statistics below are skewed towards higher numbers because
43 there are always some test messages from moderators themselves who
44 approve and reject them to make sure that our robomoderator functions
49 stump-report.pl $LOGFILE
50 ) | stump-pgp --clearsign --textmode --armor --batch --user $PMUSER_APPROVAL --passphrase "$PMPASSWORD" 2>/dev/null
55 mv $LOGFILE $LOGFILE_ARCHIVED
56 gzip -9 $LOGFILE_ARCHIVED &