summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-11-02 04:40:45 -0400
committerJesse Luehrs <doy@tozt.net>2017-11-02 04:41:05 -0400
commit841e26973837fbf5e71bbefd8f1f5fa78fde63f1 (patch)
treeea8dc2fabc5bc62f5d42ac128305ed9b84529a15 /bin
parentd4def2570ea0a52198eb2d3f83667d796dbd5c5a (diff)
downloadconf-841e26973837fbf5e71bbefd8f1f5fa78fde63f1.tar.gz
conf-841e26973837fbf5e71bbefd8f1f5fa78fde63f1.zip
1000 files at once is sometimes too long of a command line
Diffstat (limited to 'bin')
-rwxr-xr-xbin/learn_spam4
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..."