diff options
author | Jesse Luehrs <doy@tozt.net> | 2017-11-02 04:40:45 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2017-11-02 04:41:05 -0400 |
commit | 841e26973837fbf5e71bbefd8f1f5fa78fde63f1 (patch) | |
tree | ea8dc2fabc5bc62f5d42ac128305ed9b84529a15 /bin | |
parent | d4def2570ea0a52198eb2d3f83667d796dbd5c5a (diff) | |
download | conf-841e26973837fbf5e71bbefd8f1f5fa78fde63f1.tar.gz conf-841e26973837fbf5e71bbefd8f1f5fa78fde63f1.zip |
1000 files at once is sometimes too long of a command line
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/learn_spam | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/learn_spam b/bin/learn_spam index d8d1b25..2dc8515 100755 --- a/bin/learn_spam +++ b/bin/learn_spam @@ -15,12 +15,12 @@ fi if [[ ! "$1" == "-q" ]]; then echo -n "$(date): Learning ham..." fi -nice find $MAILDIR -type f | grep '/\(cur\|new\)/' | grep -v0 '/spam/' | xargs -P1 -n1000 -0 $SALEARN $OPTS --ham > $OUTFILE +nice find $MAILDIR -type f | grep '/\(cur\|new\)/' | grep -v0 '/spam/' | xargs -P2 -0 $SALEARN $OPTS --ham > $OUTFILE if [[ ! "$1" == "-q" ]]; then echo -n "$(date): Learning spam..." fi -nice find $MAILDIR -type f | grep '/\(cur\|new\)/' | grep -0 '/spam/' | xargs -P1 -n1000 -0 $SALEARN $OPTS --spam > $OUTFILE +nice find $MAILDIR -type f | grep '/\(cur\|new\)/' | grep -0 '/spam/' | xargs -P2 -0 $SALEARN $OPTS --spam > $OUTFILE if [[ ! "$1" == "-q" ]]; then echo -n "$(date): Syncing..." |