X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/638a5556b1da40dfed06a501546ee46a07974bce..dd7f9440c5075dc31de782e08ae305752511e37b:/bin/retrain 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