#!/bin/sh mv spam.local alltime_spam.local nonspam.local logs/old # --------------------------------------------------------------------------- # recent non-spam data date ./local-scripts-jm/mass-check-MH-spool ; sh commands.sh date for f in /local/cor/recent/nonspam/* ; do echo Checking $f: ; ./mass-check --loghits --nokillfile -c ./jm-mass-check-rules $f >> nonspam.local done # --------------------------------------------------------------------------- # recent spam data date for f in /local/cor/recent/spam/* ; do echo Checking $f: ; ./mass-check --loghits -c ./jm-mass-check-rules $f >> spam.local done # trap data, 27 June to 17 July 2002 # too big. skip it for now! #./mass-check --loghits -c ./jm-mass-check-rules /local/cor/recent/spamtrap/20020717/mbox >> spam.local date ./mass-check --loghits -c ./jm-mass-check-rules /local/cor/recent/spamtrap/20020717/nonspam.mbox >> nonspam.local # --------------------------------------------------------------------------- # profile a sample non-spam file (don't keep the output though, sometimes # profiling will die adn result in corrupt results) date perl -d:DProf ./mass-check -c ./jm-mass-check-rules \ /local/cor/old/nonspam/crackmice.200106.gz > /dev/null dprofpp -O 100 > ./dprof.nonspam mv tmon.out ./tmon.nonspam # --------------------------------------------------------------------------- # non-spam never changes it's tactics, so we don't have to differentiate between # recent and all-time sets. date for f in /local/cor/old/nonspam/* /local/cor/recent/nonspam/* do echo Checking $f: ; ./mass-check --loghits -c ./jm-mass-check-rules $f >> nonspam.local done # --------------------------------------------------------------------------- # profile a sample spam file (don't keep the output though, sometimes # profiling will die adn result in corrupt results) # mbox.1.gz is the latest spamtrap data for the day date perl -d:DProf ./mass-check -c ./jm-mass-check-rules \ /local/cor/recent/spam/mbox.1.gz > /dev/null dprofpp -O 100 > ./dprof.spam mv tmon.out ./tmon.spam # --------------------------------------------------------------------------- # ok, generate alltime_spam.local; check old spam archives # don't use --loghits, this is *huge* so it'd take forever date > alltime_spam.local # Aug 15 2002 jm: off for now #cp spam.local alltime_spam.local #for f in /local/cor/old/spam/* ; do #echo Checking $f: ; ./mass-check -c ./jm-mass-check-rules $f >> alltime_spam.local #done date echo "Done full scan"