All pastes #267794 Raw Edit

w0ls0n

public text v1 · immutable
·published 2006-12-05 02:46 UTC
rendered paste body
#!/usr/local/bin/bash
spamlearn=/usr/local/bin/sa-learn
LearnDirs=`find /home/vpopmail/domains/ -name .Spam -type d`
for dir in $LearnDirs; do
$spamlearn --spam $dir/cur > /dev/null
$spamlearn --spam $dir/new > /dev/null
# the rm lines are optional
/bin/ls | /usr/bin/xargs /bin/rm -f $dir/cur/*
/bin/ls | /usr/bin/xargs /bin/rm -f $dir/new/*
done
$spamlearn --sync