From: martin f. krafft Date: Sun, 23 Sep 2007 15:27:57 +0000 (+0200) Subject: switch retraining to use resubmission X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/15c8a9a5d97f1d2ac843765a35a02690c8a73148 switch retraining to use resubmission --- 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