From 15c8a9a5d97f1d2ac843765a35a02690c8a73148 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 23 Sep 2007 17:27:57 +0200 Subject: [PATCH 1/1] switch retraining to use resubmission --- bin/retrain | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/retrain b/bin/retrain index 8135509..fa7a244 100755 --- a/bin/retrain +++ b/bin/retrain @@ -4,7 +4,7 @@ set -eu NICE='/usr/bin/nice -20' NICE='' -PROCMAIL="$NICE $HOME/.etc/mailfilter/procmail/procmailrc" +RESUBMIT="$NICE $HOME/.etc/mailfilter/bin/resubmit" PAUSETIME=10 @@ -52,7 +52,7 @@ if ! lockfile -0 -r0 -l 3600 "$LOCKFILE" 2>/dev/null; then fi find $MAILDIR/cur $MAILDIR/new -type f | while read msg; do - $NICE ${0%/*}/train $ARG "$msg" | $PROCMAIL || ret=$? + $NICE ${0%/*}/train $ARG "$msg" | $RESUBMIT || ret=$? case "${ret:-0}" in 0|75) :;; esac -- 2.39.5