[auto-mass-check] Apply patch from Darxus to enable iprep.pl
by Nick Bebout
commit 03837d28068b336623ea7b78c2429e75910237c5
Author: Nick Bebout <nb(a)fedoraproject.org>
Date: Mon Apr 11 21:27:30 2011 -0500
Apply patch from Darxus to enable iprep.pl
auto-mass-check.cf | 5 +++++
auto-mass-check.sh | 15 +++++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/auto-mass-check.cf b/auto-mass-check.cf
index 8438142..7fcc545 100644
--- a/auto-mass-check.cf
+++ b/auto-mass-check.cf
@@ -10,6 +10,11 @@ WORKDIR=~/masscheckwork
# Generate folders of probable spam for inspection here
# Blank if you with to disable folder generation
CHECKDIR=
+
+# Optionally also use http://www.chaosreigns.com/iprep/
+#IPREP_PATH=$WORKDIR/iprep.pl
+
+
# Leave these blank if you do not want trusted_networks
# and/or internal_networks to be set
TRUSTED_NETWORKS=
diff --git a/auto-mass-check.sh b/auto-mass-check.sh
index a4f318e..8f3c703 100755
--- a/auto-mass-check.sh
+++ b/auto-mass-check.sh
@@ -133,6 +133,21 @@ run_masscheck() {
LOGLIST="$LOGLIST ham-${LOGNAME} spam-${LOGNAME}"
set +x
generate_check_folders $CORPUSNAME
+
+ # Run iprep.pl from http://www.chaosreigns.com/iprep/
+ if [ ! -z "$IPREP_PATH" ]; then
+ echo "Running iprep.pl"
+ if [ -x $IPREP_PATH ]; then
+ if [ "$CORPUSNAME" == "single-corpus" ]; then
+ IPREPLOG=
+ else
+ IPREPLOG="--logname=${CORPUSNAME}"
+ fi
+ $IPREP_PATH $IPREPLOG $@
+ else
+ echo "iprep.pl script, $IPREP_PATH, is missing or not executable."
+ fi
+ fi
}
upload_results() {
11 years, 11 months